apiVersion: v1 kind: Service metadata: labels: app: nginx name: nginx-service spec: ports: - port: 80 #change to 80 protocol: TCP targetPort: 80 #change to 80 nodePort: 30334 selector: app: nginx type: NodePort