From c4e407d91dc711408b33e50c925a7124f8420def Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Fri, 3 Oct 2025 00:36:13 -0500 Subject: [PATCH] add --- clusters/cl01tl/management/komodo/values.yaml | 90 ++++++++++--------- 1 file changed, 49 insertions(+), 41 deletions(-) diff --git a/clusters/cl01tl/management/komodo/values.yaml b/clusters/cl01tl/management/komodo/values.yaml index 1f76c4cba..d131a0076 100644 --- a/clusters/cl01tl/management/komodo/values.yaml +++ b/clusters/cl01tl/management/komodo/values.yaml @@ -101,47 +101,6 @@ komodo: requests: cpu: 10m memory: 128Mi - ferretdb2: - image: - repository: ghcr.io/ferretdb/ferretdb - tag: 2.5.0 - pullPolicy: IfNotPresent - env: - - name: FERRETDB_POSTGRESQL_URL - valueFrom: - secretKeyRef: - name: komodo-postgresql-17-fdb-cluster-superuser - key: uri - resources: - requests: - cpu: 10m - memory: 128Mi - copy-database: - image: - repository: ghcr.io/moghtech/komodo-cli - tag: latest - pullPolicy: IfNotPresent - args: - - km database copy -y - env: - - name: KOMODO_DATABASE_URI - valueFrom: - secretKeyRef: - name: komodo-postgresql-17-cluster-app - key: uri - - name: KOMODO_DATABASE_DB_NAME - value: app - - name: KOMODO_CLI_DATABASE_TARGET_URI - valueFrom: - secretKeyRef: - name: komodo-postgresql-17-fdb-cluster-superuser - key: uri - - name: KOMODO_CLI_DATABASE_TARGET_DB_NAME - value: postgres - resources: - requests: - cpu: 10m - memory: 128Mi service: main: controller: main @@ -171,6 +130,55 @@ komodo: main: - path: /syncs readOnly: false +komodo-migrate: + controllers: + main: + type: deployment + replicas: 1 + strategy: Recreate + revisionHistoryLimit: 3 + containers: + ferretdb2: + image: + repository: ghcr.io/ferretdb/ferretdb + tag: 2.5.0 + pullPolicy: IfNotPresent + env: + - name: FERRETDB_POSTGRESQL_URL + valueFrom: + secretKeyRef: + name: komodo-postgresql-17-fdb-cluster-superuser + key: uri + resources: + requests: + cpu: 10m + memory: 128Mi + copy-database: + image: + repository: ghcr.io/moghtech/komodo-cli + tag: latest + pullPolicy: IfNotPresent + command: + - km database copy -y + env: + - name: KOMODO_DATABASE_URI + valueFrom: + secretKeyRef: + name: komodo-postgresql-17-cluster-app + key: uri + - name: KOMODO_DATABASE_DB_NAME + value: app + - name: KOMODO_CLI_DATABASE_TARGET_URI + valueFrom: + secretKeyRef: + name: komodo-postgresql-17-fdb-cluster-superuser + key: uri + - name: KOMODO_CLI_DATABASE_TARGET_DB_NAME + value: postgres + resources: + requests: + cpu: 10m + memory: 128Mi postgres-17-cluster: mode: recovery cluster: