apiVersion: v1 kind: Service metadata: name: good namespace: test-namespace labels: app: good annotations: service.beta.kubernetes.io/aws-load-balancer-type: "nlb" service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "" service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443" service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http" spec: type: LoadBalancer ports: - port: 443 targetPort: 80 protocol: TCP selector: app: good --- kind: Deployment apiVersion: apps/v1 metadata: name: good namespace: default labels: app: good spec: replicas: 1 selector: matchLabels: app: good template: metadata: labels: app: good spec: containers: - name: nginx image: nginx ports: - containerPort: 443 protocol: TCP - containerPort: 80 protocol: TCP