25 lines
654 B
YAML
25 lines
654 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ template "fullname" . }}-ssh
|
|
labels:
|
|
app: {{ template "fullname" . }}
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
release: "{{ .Release.Name }}"
|
|
heritage: "{{ .Release.Service }}"
|
|
spec:
|
|
type: {{ .Values.service.ssh.serviceType }}
|
|
{{- with .Values.service.ssh.externalIPs }}
|
|
externalIPs:
|
|
{{ toYaml . | indent 2 | trim }}
|
|
{{- end }}
|
|
ports:
|
|
- name: ssh
|
|
port: {{ .Values.service.ssh.port }}
|
|
targetPort: ssh
|
|
{{- if .Values.service.ssh.nodePort }}
|
|
nodePort: {{ .Values.service.ssh.nodePort }}
|
|
{{- end }}
|
|
selector:
|
|
app: {{ template "fullname" . }}
|