From ca8e6aa2fae98f77c24cf53dd80be791c41500cb Mon Sep 17 00:00:00 2001 From: Anton Aleksandrov Date: Wed, 9 Aug 2023 22:51:46 +0300 Subject: [PATCH 1/2] Fix rabbitmq helm problems --- helm-chart/requirements.lock | 10 +++--- helm-chart/requirements.yaml | 6 ++-- helm-chart/values.yaml | 65 +++++++++++++++--------------------- 3 files changed, 35 insertions(+), 46 deletions(-) diff --git a/helm-chart/requirements.lock b/helm-chart/requirements.lock index eb85bb9..2dda433 100644 --- a/helm-chart/requirements.lock +++ b/helm-chart/requirements.lock @@ -1,12 +1,12 @@ dependencies: - name: rabbitmq repository: https://charts.bitnami.com/bitnami - version: 11.9.3 + version: 12.0.10 - name: rabbitmq repository: https://charts.bitnami.com/bitnami - version: 11.9.3 + version: 12.0.10 - name: postgresql repository: https://charts.bitnami.com/bitnami - version: 11.6.26 -digest: sha256:9f700ddcd4c0ad2f0e36b82c423ad71635e23686869f4c9f886d2a1fdd824886 -generated: "2023-02-19T16:16:56.258862178+01:00" + version: 12.8.1 +digest: sha256:b548d5a2c235b38f65aa4e3037f0593d93f3900ef01f3f4803c34da61ca1cd3f +generated: "2023-08-09T22:14:47.438653+03:00" diff --git a/helm-chart/requirements.yaml b/helm-chart/requirements.yaml index db127d8..8f5f4a0 100644 --- a/helm-chart/requirements.yaml +++ b/helm-chart/requirements.yaml @@ -1,15 +1,15 @@ dependencies: - name: rabbitmq - version: 11.9.3 + version: 12.0.10 repository: https://charts.bitnami.com/bitnami alias: async-rabbitmq condition: rabbitmq.enabled - name: rabbitmq - version: 11.9.3 + version: 12.0.10 repository: https://charts.bitnami.com/bitnami alias: events-rabbitmq condition: rabbitmq.enabled - name: postgresql - version: 11.6.26 + version: 12.8.1 repository: https://charts.bitnami.com/bitnami condition: postgresql.enabled diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index aad59cb..4642dfe 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -84,7 +84,7 @@ createInitialUser: true ## Create initial templates ## ref: https://taigaio.github.io/taiga-doc/dist/setup-production.html ## -createInitialTemplates: false +createInitialTemplates: true back: ## Taiga image version @@ -156,14 +156,14 @@ back: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) ## livenessProbe: - enabled: false + enabled: true initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 readinessProbe: - enabled: false + enabled: true initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 1 @@ -224,10 +224,13 @@ async: ## Must match to async-rabbitmq.auth.username and async-rabbitmq.auth.password ## I don't use async-rabbitmq values because this bug: https://github.com/helm/helm/issues/2192 rabbitmq: + ulimitNofiles: null auth: username: taiga password: taiga - + extraEnvVars: + - name: "RABBITMQ_ULIMIT_NOFILES" + value: null ## Define the number of pods the deployment will create ## Do not change unless your persistent volume allows more than one writer, ie NFS ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/ @@ -278,14 +281,14 @@ async: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) ## livenessProbe: - enabled: false + enabled: true initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 readinessProbe: - enabled: false + enabled: true initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 1 @@ -346,9 +349,13 @@ events: ## Must match to events-rabbitmq.auth.username and events-rabbitmq.auth.password ## I don't use events-rabbitmq values because this bug: https://github.com/helm/helm/issues/2192 rabbitmq: + ulimitNofiles: null auth: username: taiga password: taiga + extraEnvVars: + - name: "RABBITMQ_ULIMIT_NOFILES" + value: null ## Pod Security Context ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ @@ -401,14 +408,14 @@ events: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) ## livenessProbe: - enabled: false + enabled: true initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 readinessProbe: - enabled: false + enabled: true initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 1 @@ -517,14 +524,14 @@ protected: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) ## livenessProbe: - enabled: false + enabled: true initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 readinessProbe: - enabled: false + enabled: true initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 1 @@ -630,14 +637,14 @@ front: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) ## livenessProbe: - enabled: false + enabled: true initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 readinessProbe: - enabled: false + enabled: true initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 1 @@ -745,14 +752,14 @@ gateway: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) ## livenessProbe: - enabled: false + enabled: true initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 10 readinessProbe: - enabled: false + enabled: true initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 1 @@ -887,18 +894,18 @@ persistence: ## # storageClass: "-" accessMode: ReadWriteOnce - size: 5Gi + size: 1Gi ## PostgreSQL chart configuration ## ## https://github.com/helm/charts/blob/master/stable/postgresql/values.yaml ## postgresql: - image: - tag: 13.10.0-debian-11-r2 - ## Whether to deploy a PostgreSQL server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true + primary: + persistence: + size: 1Gi ## ref: https://github.com/bitnami/containers/tree/main/bitnami/postgresql#setting-the-root-password-on-first-run ## ref: https://github.com/bitnami/containers/tree/main/bitnami/postgresql#creating-a-database-on-first-run @@ -921,26 +928,6 @@ postgresql: ## database: "taiga" - ## Enable persistence using Persistent Volume Claims - ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ - ## - persistence: - enabled: true - ## A manually manage Persistent Volume Claim - ## Requires postgresql.persistence.enable: true - ## If defined, PVC must be created manually before volume will be bound - # existingClaim: - - ## postgresql data Persistent Volume Storage Class - ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning - ## If undefined (the default) or set to null, no storageClassName spec is - ## set, choosing the default provisioner. (gp2 on AWS, standard on - ## GKE, AWS & OpenStack) - ## - # storageClass: "-" - accessMode: ReadWriteOnce - size: 1Gi ## async Rabbitmq chart configuration ## @@ -983,6 +970,8 @@ events-rabbitmq: default_permissions.configure = .* default_permissions.read = .* default_permissions.write = .* + persistence: + size: 1Gi ## Enable debug From ad280ea99f2774973cc28a3d10e806bef54fd71e Mon Sep 17 00:00:00 2001 From: Anton Aleksandrov Date: Wed, 9 Aug 2023 23:47:01 +0300 Subject: [PATCH 2/2] Fix rabbitmq helm problems --- helm-chart/values.yaml | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 4642dfe..b5c0f9c 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -156,14 +156,14 @@ back: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) ## livenessProbe: - enabled: true + enabled: false initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 readinessProbe: - enabled: true + enabled: false initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 1 @@ -228,9 +228,6 @@ async: auth: username: taiga password: taiga - extraEnvVars: - - name: "RABBITMQ_ULIMIT_NOFILES" - value: null ## Define the number of pods the deployment will create ## Do not change unless your persistent volume allows more than one writer, ie NFS ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/ @@ -281,14 +278,14 @@ async: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) ## livenessProbe: - enabled: true + enabled: false initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 readinessProbe: - enabled: true + enabled: false initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 1 @@ -355,8 +352,6 @@ events: password: taiga extraEnvVars: - name: "RABBITMQ_ULIMIT_NOFILES" - value: null - ## Pod Security Context ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ ## @@ -408,14 +403,14 @@ events: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) ## livenessProbe: - enabled: true + enabled: false initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 readinessProbe: - enabled: true + enabled: false initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 1 @@ -524,14 +519,14 @@ protected: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) ## livenessProbe: - enabled: true + enabled: false initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 readinessProbe: - enabled: true + enabled: false initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 1 @@ -637,14 +632,14 @@ front: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) ## livenessProbe: - enabled: true + enabled: false initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 3 readinessProbe: - enabled: true + enabled: false initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 1 @@ -752,14 +747,14 @@ gateway: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) ## livenessProbe: - enabled: true + enabled: false initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 10 readinessProbe: - enabled: true + enabled: false initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 1 @@ -936,7 +931,7 @@ postgresql: async-rabbitmq: # Whether to deploy a Rabbitmq server to satisfy the applications messaging services. To use an external rabbitmq set this to false and configure the externalRabbitmq parameters enabled: true - + ulimitNofiles: null ## Create a rabbitmq username auth: username: taiga @@ -949,6 +944,8 @@ async-rabbitmq: default_permissions.configure = .* default_permissions.read = .* default_permissions.write = .* + persistence: + size: 1Gi ## events Rabbitmq chart configuration ## @@ -958,6 +955,7 @@ events-rabbitmq: # Whether to deploy a Rabbitmq server to satisfy the applications messaging services. To use an external rabbitmq set this to false and configure the externalRabbitmq parameters enabled: true + ulimitNofiles: null ## Create a rabbitmq username auth: username: taiga