_service.tpl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {{- define "syncthing.service" -}}
  2. service:
  3. syncthing-web:
  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. syncthing-discovery:
  16. # Only enable this service if local discovery is enabled
  17. enabled: {{ .Values.syncthingConfig.localDiscovery }}
  18. type: NodePort
  19. targetSelector: syncthing
  20. ports:
  21. discovery:
  22. enabled: true
  23. port: {{ .Values.syncthingNetwork.localDiscoveryPort }}
  24. nodePort: {{ .Values.syncthingNetwork.localDiscoveryPort }}
  25. targetPort: 21017
  26. protocol: udp
  27. targetSelector: syncthing
  28. syncthing-transfer:
  29. enabled: true
  30. type: NodePort
  31. targetSelector: syncthing
  32. ports:
  33. tcp:
  34. enabled: true
  35. primary: true
  36. port: {{ .Values.syncthingNetwork.tcpPort }}
  37. nodePort: {{ .Values.syncthingNetwork.tcpPort }}
  38. targetPort: 22000
  39. targetSelector: syncthing
  40. quic:
  41. enabled: true
  42. port: {{ .Values.syncthingNetwork.quicPort }}
  43. nodePort: {{ .Values.syncthingNetwork.quicPort }}
  44. targetPort: 22000
  45. protocol: udp
  46. targetSelector: syncthing
  47. {{- end -}}