From 3b16ecbd897ce9509a33c4369992b602478052bc Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 16 Mar 2023 19:45:15 +0300 Subject: [PATCH] Add syncthing (#55) * Add syncthing * Add chart description --- charts/syncthing/.helmignore | 27 +++++++++++++++ charts/syncthing/Chart.lock | 6 ++++ charts/syncthing/Chart.yaml | 25 ++++++++++++++ charts/syncthing/templates/all.yaml | 1 + charts/syncthing/values.yaml | 52 +++++++++++++++++++++++++++++ 5 files changed, 111 insertions(+) create mode 100644 charts/syncthing/.helmignore create mode 100644 charts/syncthing/Chart.lock create mode 100644 charts/syncthing/Chart.yaml create mode 100644 charts/syncthing/templates/all.yaml create mode 100644 charts/syncthing/values.yaml diff --git a/charts/syncthing/.helmignore b/charts/syncthing/.helmignore new file mode 100644 index 0000000..4c2748c --- /dev/null +++ b/charts/syncthing/.helmignore @@ -0,0 +1,27 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj + +# Manually added entries +ci/ +examples/ +Makefile +README.md.gotmpl diff --git a/charts/syncthing/Chart.lock b/charts/syncthing/Chart.lock new file mode 100644 index 0000000..a4c9fdb --- /dev/null +++ b/charts/syncthing/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: librepod + repository: https://librepod.github.io/charts + version: 1.2.0 +digest: sha256:1dcc99dc6525e660fe55ac3e87b1b36a4ca644b7728156d92f73371335e49290 +generated: "2023-03-14T21:25:34.196299846+03:00" diff --git a/charts/syncthing/Chart.yaml b/charts/syncthing/Chart.yaml new file mode 100644 index 0000000..74212a9 --- /dev/null +++ b/charts/syncthing/Chart.yaml @@ -0,0 +1,25 @@ +apiVersion: v2 +name: syncthing +description: | + Syncthing is a continuous file synchronization program. + It synchronizes files between two or more computers in real time, safely protected from prying eyes. +version: 0.1.0 +appVersion: "1.23" +kubeVersion: ">=1.16.0-0" +type: application +keywords: + - sync + - filesync + - syncthing +home: https://github.com/librepod/charts/tree/master/charts/syncthing +sources: + - https://github.com/librepod/charts/tree/master/charts/syncthing + - https://github.com/syncthing/syncthing + - https://github.com/syncthing/syncthing/blob/main/README-Docker.md +icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/syncthing.png +dependencies: + - name: librepod + version: 1.2.0 + repository: https://librepod.github.io/charts +annotations: + category: My Apps diff --git a/charts/syncthing/templates/all.yaml b/charts/syncthing/templates/all.yaml new file mode 100644 index 0000000..6b1fe4e --- /dev/null +++ b/charts/syncthing/templates/all.yaml @@ -0,0 +1 @@ +{{- include "librepod.all" . -}} diff --git a/charts/syncthing/values.yaml b/charts/syncthing/values.yaml new file mode 100644 index 0000000..094a66b --- /dev/null +++ b/charts/syncthing/values.yaml @@ -0,0 +1,52 @@ +image: + repository: syncthing/syncthing + pullPolicy: IfNotPresent + tag: "" + +service: + main: + enabled: true + ports: + http: + port: 8384 + listen: + enabled: true + ports: + listen: + enabled: true + port: 22000 + protocol: TCP + listen-udp: + enabled: true + ports: + listen-udp: + enabled: true + port: 22000 + protocol: UDP + discovery: + enabled: true + ports: + discovery: + enabled: true + port: 21027 + protocol: UDP + +ingress: + main: + enabled: true + hosts: + - host: "{{ .Chart.Name }}.libre.pod" + +dashboard: + expose: true + url: "https://{{ .Chart.Name }}.libre.pod" + +persistence: + data: + enabled: true + type: pvc + mountPath: /var/syncthing + readOnly: false + accessMode: ReadWriteOnce + size: 20Gi + retain: true