diff --git a/k8s/apps/syncthing/kustomization.yaml b/k8s/apps/syncthing/kustomization.yaml index 16786cf..542041c 100644 --- a/k8s/apps/syncthing/kustomization.yaml +++ b/k8s/apps/syncthing/kustomization.yaml @@ -9,8 +9,15 @@ helmCharts: - name: syncthing repo: https://k8s-home-lab.github.io/helm-charts version: 4.0.0 - releaseName: syncthing + releaseName: syncthing-master namespace: syncthing - valuesFile: syncthing-values.yaml + valuesFile: syncthing-master.yaml includeCRDs: true + - name: syncthing + repo: https://k8s-home-lab.github.io/helm-charts + version: 4.0.0 + releaseName: syncthing-khv + namespace: syncthing + valuesFile: syncthing-khv.yaml + includeCRDs: true diff --git a/k8s/apps/syncthing/syncthing-khv.yaml b/k8s/apps/syncthing/syncthing-khv.yaml new file mode 100644 index 0000000..a711dd9 --- /dev/null +++ b/k8s/apps/syncthing/syncthing-khv.yaml @@ -0,0 +1,40 @@ +persistence: + config: + enabled: true + type: hostPath + hostPath: "/k8s/syncthing" + mountPath: "/var/syncthing" + storage: + enabled: true + type: hostPath + hostPath: "/home/share" + mountPath: "/storage" +nodeSelector: + kubernetes.io/hostname: iris.khv +service: + main: + ports: + http: + port: 8384 + listen: + enabled: true + type: LoadBalancer + ports: + listen: + enabled: true + port: 30023 + protocol: TCP + targetPort: 22000 + selector: + app.kubernetes.io/name: syncthing + discovery: + enabled: true + type: NodePort + externalTrafficPolicy: Cluster + ports: + discovery: + enabled: true + port: 21027 + protocol: UDP + targetPort: 21027 + diff --git a/k8s/apps/syncthing/syncthing-values.yaml b/k8s/apps/syncthing/syncthing-master.yaml similarity index 100% rename from k8s/apps/syncthing/syncthing-values.yaml rename to k8s/apps/syncthing/syncthing-master.yaml