apiVersion: v1 kind: Service metadata: name: template-single spec: ports: - port: 80 protocol: TCP targetPort: 8000 selector: app: template-single