Files
chart/library/ix-dev/test/syncthing/templates/_service.tpl
Stavros Kois 47e6a12518 NAS-123851 / 24.04 / Add SMB PV/PVC to Syncthing - test train (#1499)
* make a syncthing copy under test train

* add test catalog in CI

* bump common

* add smb option
2023-09-06 15:38:28 +03:00

48 lines
1.3 KiB
Smarty

{{- define "syncthing.service" -}}
service:
syncthing-web:
enabled: true
primary: true
type: NodePort
targetSelector: syncthing
ports:
webui:
enabled: true
primary: true
port: {{ .Values.syncthingNetwork.webPort }}
nodePort: {{ .Values.syncthingNetwork.webPort }}
targetSelector: syncthing
syncthing-discovery:
# Only enable this service if local discovery is enabled
enabled: {{ .Values.syncthingConfig.localDiscovery }}
type: NodePort
targetSelector: syncthing
ports:
discovery:
enabled: true
port: {{ .Values.syncthingNetwork.localDiscoveryPort }}
nodePort: {{ .Values.syncthingNetwork.localDiscoveryPort }}
targetPort: 21017
protocol: udp
targetSelector: syncthing
syncthing-transfer:
enabled: true
type: NodePort
targetSelector: syncthing
ports:
tcp:
enabled: true
primary: true
port: {{ .Values.syncthingNetwork.tcpPort }}
nodePort: {{ .Values.syncthingNetwork.tcpPort }}
targetPort: 22000
targetSelector: syncthing
quic:
enabled: true
port: {{ .Values.syncthingNetwork.quicPort }}
nodePort: {{ .Values.syncthingNetwork.quicPort }}
targetPort: 22000
protocol: udp
targetSelector: syncthing
{{- end -}}