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
601 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 }}
{{- range .Values.service.externalIPs.ip }}
externalIPs:{{.}}{{- end }}
{{- end }}
selector:
{{- include "rsyncd.selectorLabels" . | nindent 4 }}