apiVersion: v1 kind: Service metadata: name: {{.ObjectMeta.Name}}-svc namespace: {{.ObjectMeta.Namespace}} spec: selector: app: {{.ObjectMeta.Name}} ports: - name: ssh port: {{.Spec.Ingress.Port}} targetPort: ssh-port protocol: TCP