From 6d76e9c2fbf52c7602fe8c23447d7341cb51190f Mon Sep 17 00:00:00 2001 From: Thomas Miceli Date: Tue, 10 Sep 2024 00:10:40 +0200 Subject: [PATCH] helm --- deploy/helm/Chart.yaml | 2 +- deploy/helm/templates/pvc.yaml | 5 +++++ deploy/helm/values.yaml | 16 +++++++++++----- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/deploy/helm/Chart.yaml b/deploy/helm/Chart.yaml index 9229651..42f49ea 100644 --- a/deploy/helm/Chart.yaml +++ b/deploy/helm/Chart.yaml @@ -3,7 +3,7 @@ name: opengist description: Opengist chart for Kubernetes type: application version: 0.1.0 -appVersion: "1.7.3" +appVersion: "1.7.4" maintainers: - name: thomiceli url: https://github.com/thomiceli \ No newline at end of file diff --git a/deploy/helm/templates/pvc.yaml b/deploy/helm/templates/pvc.yaml index d95d94a..dc5da26 100644 --- a/deploy/helm/templates/pvc.yaml +++ b/deploy/helm/templates/pvc.yaml @@ -6,6 +6,11 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{ include "opengist.labels" . | indent 4 }} + annotations: + helm.sh/resource-policy: "keep" + {{- with .Values.persistence.annotations }} + {{ toYaml . | indent 4 }} + {{- end }} spec: accessModes: - {{ .Values.persistence.accessMode | quote }} diff --git a/deploy/helm/values.yaml b/deploy/helm/values.yaml index fa5d4ac..65146f0 100644 --- a/deploy/helm/values.yaml +++ b/deploy/helm/values.yaml @@ -4,13 +4,18 @@ image: repository: ghcr.io/thomiceli/opengist - pullPolicy: IfNotPresent + pullPolicy: Always tag: "" ## - YAML config of Opengist https://github.com/thomiceli/opengist/blob/master/docs/configuration/cheat-sheet.md - ## # Uses a ConfigMap for non-sensitive configuration -config: {} - # log-output: stdout +config: + custom.static-links: + - name: Discord │ + path: https://discord.gg/9Pm3X5scZT │ + git.default-branch: master │ + log-level: warn │ + log-output: stdout # Uses a Secret for sensitive configuration configSecret: {} @@ -26,8 +31,8 @@ replicaCount: 1 strategy: type: RollingUpdate rollingUpdate: - maxSurge: 25% - maxUnavailable: 25% + maxSurge: 1 + maxUnavailable: 0 imagePullSecrets: [] @@ -87,6 +92,7 @@ persistence: # storageClass: accessMode: ReadWriteOnce size: 10Gi + annotations: {} autoscaling: enabled: false