apiVersion: v1 kind: Service metadata: name: dev-svc spec: type: NodePort selector: app: nginx ports: - protocol: TCP port: 80 targetPort: 80