apiVersion: v1 kind: Service metadata: name: {{ include "deploy.serviceFullname" (dict "root" . "svcKey" "gitserver") }}-ssh labels: {{- include "deploy.labels" . | nindent 4 }} app.kubernetes.io/component: gitserver annotations: {{- with .Values.services.gitserver.sshService.annotations }} {{- toYaml . | nindent 4 }} {{- end }} spec: type: LoadBalancer externalTrafficPolicy: Local ports: - port: 22 targetPort: ssh protocol: TCP name: ssh selector: {{- include "deploy.serviceSelectorLabels" (dict "root" . "svcKey" "gitserver") | nindent 4 }}