opengist/deploy/helm/templates/service-ssh.yaml

22 lines
632 B
YAML
Raw Normal View History

2024-09-03 23:05:10 +00:00
{{- if .Values.serviceSsh.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "opengist.fullname" . }}-ssh
labels:
{{- include "opengist.labels" . | nindent 4 }}
annotations:
{{- toYaml .Values.serviceSsh.annotations | nindent 4 }}
spec:
type: {{ .Values.serviceSsh.type }}
ports:
- port: {{ .Values.serviceSsh.port }}
targetPort: {{ .Values.serviceSsh.port }}
protocol: TCP
name: ssh
{{- if .Values.serviceSsh.nodePort }}
nodePort: {{ .Values.serviceSsh.nodePort }}
{{- end }}
selector:
{{- include "opengist.selectorLabels" . | nindent 4 }}
{{- end }}