--- apiVersion: v1 kind: Service metadata: name: nginx namespace: nginx labels: name: nginx spec: ports: - protocol: TCP port: 80 targetPort: 80