add copy
This commit is contained in:
@@ -101,49 +101,13 @@ komodo:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
# copy:
|
ferretdb:
|
||||||
# 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}@migrate:27017
|
|
||||||
# - name: KOMODO_CLI_DATABASE_TARGET_DB_NAME
|
|
||||||
# value: komodo
|
|
||||||
migrate:
|
|
||||||
type: deployment
|
type: deployment
|
||||||
replicas: 1
|
replicas: 1
|
||||||
strategy: Recreate
|
strategy: Recreate
|
||||||
revisionHistoryLimit: 3
|
revisionHistoryLimit: 3
|
||||||
containers:
|
containers:
|
||||||
ferretdb2:
|
main:
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/ferretdb/ferretdb
|
repository: ghcr.io/ferretdb/ferretdb
|
||||||
tag: 2.5.0
|
tag: 2.5.0
|
||||||
@@ -165,6 +129,48 @@ komodo:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
|
copy:
|
||||||
|
type: deployment
|
||||||
|
replicas: 1
|
||||||
|
strategy: Recreate
|
||||||
|
revisionHistoryLimit: 3
|
||||||
|
containers:
|
||||||
|
main:
|
||||||
|
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)@komodo.komodo: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}@ferretdb.komodo:27017
|
||||||
|
- name: KOMODO_CLI_DATABASE_TARGET_DB_NAME
|
||||||
|
value: komodo
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
controller: main
|
controller: main
|
||||||
@@ -173,7 +179,13 @@ komodo:
|
|||||||
port: 80
|
port: 80
|
||||||
targetPort: 9120
|
targetPort: 9120
|
||||||
protocol: HTTP
|
protocol: HTTP
|
||||||
|
ferretdb:
|
||||||
|
controller: ferretdb
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 27017
|
||||||
|
targetPort: 27017
|
||||||
|
protocol: HTTP
|
||||||
persistence:
|
persistence:
|
||||||
cache:
|
cache:
|
||||||
storageClass: ceph-block
|
storageClass: ceph-block
|
||||||
|
Reference in New Issue
Block a user