add migrate
This commit is contained in:
@@ -101,6 +101,42 @@ komodo:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 128Mi
|
||||
copy:
|
||||
image:
|
||||
repository: ghcr.io/moghtech/komodo-cli
|
||||
tag: latest
|
||||
pullPolicy: IfNotPresent
|
||||
command: ["km"]
|
||||
args: ["database", "copy", "-y"]
|
||||
env:
|
||||
- name: DB_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: komodo-postgresql-17-cluster-app
|
||||
key: user
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: komodo-postgresql-17-cluster-app
|
||||
key: password
|
||||
- name: KOMODO_DATABASE_URI
|
||||
value: mongodb://$(DB_USERNAME):$(DB_PASSWORD)@localhost:27017/komodo?authMechanism=PLAIN
|
||||
- name: KOMODO_DATABASE_DB_NAME
|
||||
value: komodo
|
||||
- name: TARGETDB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: komodo-postgresql-17-fdb-cluster-superuser
|
||||
key: password
|
||||
- name: TARGETDB_HOST
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: komodo-postgresql-17-fdb-cluster-superuser
|
||||
key: host
|
||||
- name: KOMODO_CLI_DATABASE_TARGET_URI
|
||||
value: mongodb://postgres:${TARGETDB_PASSWORD}@${TARGETDB_HOST}:27017
|
||||
- name: KOMODO_CLI_DATABASE_TARGET_DB_NAME
|
||||
value: komodo
|
||||
migrate:
|
||||
type: deployment
|
||||
replicas: 1
|
||||
|
Reference in New Issue
Block a user