You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
603 B
YAML
24 lines
603 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "rsyncd.fullname" . }}
|
|
labels:
|
|
{{- include "rsyncd.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- port: {{ .Values.service.rsync.port }}
|
|
targetPort: 873
|
|
protocol: TCP
|
|
name: rsync
|
|
- port: {{ .Values.service.ssh.port }}
|
|
targetPort: 22
|
|
protocol: TCP
|
|
name: ssh
|
|
{{- if .Values.service.externalIPs.enabled }}
|
|
externalIPs:{{- range .Values.service.externalIPs.ip }}
|
|
- {{.}}{{- end }}
|
|
{{- end }}
|
|
selector:
|
|
{{- include "rsyncd.selectorLabels" . | nindent 4 }}
|