_service.tpl 804 B

12345678910111213141516171819202122232425262728
  1. {{- define "syncthing.service" -}}
  2. service:
  3. syncthing:
  4. enabled: true
  5. primary: true
  6. type: NodePort
  7. targetSelector: syncthing
  8. ports:
  9. webui:
  10. enabled: true
  11. primary: true
  12. port: {{ .Values.syncthingNetwork.webPort }}
  13. nodePort: {{ .Values.syncthingNetwork.webPort }}
  14. targetSelector: syncthing
  15. sync-tcp:
  16. enabled: true
  17. port: {{ .Values.syncthingNetwork.tcpPort }}
  18. nodePort: {{ .Values.syncthingNetwork.tcpPort }}
  19. targetPort: 22000
  20. targetSelector: syncthing
  21. sync-udp:
  22. enabled: true
  23. port: {{ .Values.syncthingNetwork.udpPort }}
  24. nodePort: {{ .Values.syncthingNetwork.udpPort }}
  25. targetPort: 22000
  26. protocol: udp
  27. targetSelector: syncthing
  28. {{- end -}}