apiVersion: v1 kind: Service metadata: name: whoami-nodeport namespace: whoami spec: type: NodePort ports: - port: 80 targetPort: 80 nodePort: 31338 selector: app: whoami --- apiVersion: v1 kind: Service metadata: name: whoami-loadbalancer namespace: whoami spec: type: LoadBalancer ports: - port: 80 targetPort: 80 selector: app: whoami