apiVersion: v1 kind: Service metadata: name: nginx labels: app: nginx spec: selector: app: nginx type: LoadBalancer ports: - name: "80" port: 80 targetPort: 80 - name: "443" port: 443 targetPort: 443