remove db
This commit is contained in:
@@ -62,8 +62,13 @@ komodo:
|
||||
secretKeyRef:
|
||||
name: komodo-postgresql-17-cluster-app
|
||||
key: password
|
||||
- name: DB_HOST
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: komodo-postgresql-17-cluster-app
|
||||
key: host
|
||||
- name: KOMODO_DATABASE_URI
|
||||
value: mongodb://$(DB_USERNAME):$(DB_PASSWORD)@localhost:27017/komodo?authMechanism=PLAIN
|
||||
value: mongodb://$(DB_USERNAME):$(DB_PASSWORD)@$(DB_PASSWORD).komodo:27017/komodo?authMechanism=PLAIN
|
||||
- name: KOMODO_OIDC_ENABLED
|
||||
value: true
|
||||
- name: KOMODO_OIDC_PROVIDER
|
||||
@@ -87,6 +92,12 @@ komodo:
|
||||
cpu: 10m
|
||||
memory: 128Mi
|
||||
ferretdb:
|
||||
type: deployment
|
||||
replicas: 1
|
||||
strategy: Recreate
|
||||
revisionHistoryLimit: 3
|
||||
containers:
|
||||
main:
|
||||
image:
|
||||
repository: ghcr.io/ferretdb/ferretdb
|
||||
tag: 1.24.2
|
||||
@@ -101,86 +112,6 @@ komodo:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 128Mi
|
||||
ferretdb:
|
||||
type: deployment
|
||||
replicas: 1
|
||||
strategy: Recreate
|
||||
revisionHistoryLimit: 3
|
||||
containers:
|
||||
main:
|
||||
image:
|
||||
repository: ghcr.io/ferretdb/ferretdb
|
||||
tag: 2.5.0
|
||||
pullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: DB_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: komodo-postgresql-17-fdb-cluster-superuser
|
||||
key: user
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: komodo-postgresql-17-fdb-cluster-superuser
|
||||
key: password
|
||||
- name: DB_HOST
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: komodo-postgresql-17-fdb-cluster-superuser
|
||||
key: host
|
||||
- name: FERRETDB_POSTGRESQL_URL
|
||||
value: postgresql://$(DB_USERNAME):$(DB_PASSWORD)@$(DB_HOST).komodo:5432/postgres
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
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-main.komodo:27017/komodo?authMechanism=PLAIN
|
||||
- name: KOMODO_DATABASE_DB_NAME
|
||||
value: komodo
|
||||
- name: TARGETDB_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: komodo-postgresql-17-fdb-cluster-superuser
|
||||
key: user
|
||||
- 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://$(TARGETDB_USERNAME):$(TARGETDB_PASSWORD)@komodo-ferretdb.komodo:27017
|
||||
- name: KOMODO_CLI_DATABASE_TARGET_DB_NAME
|
||||
value: komodo
|
||||
service:
|
||||
main:
|
||||
controller: main
|
||||
@@ -244,51 +175,3 @@ postgres-17-cluster:
|
||||
suspend: false
|
||||
schedule: "0 0 0 * * *"
|
||||
backupName: external
|
||||
postgres-17-fdb-cluster:
|
||||
nameOverride: komodo-postgresql-17-fdb
|
||||
mode: standalone
|
||||
cluster:
|
||||
image:
|
||||
repository: ghcr.io/ferretdb/postgres-documentdb
|
||||
tag: "17-0.106.0-ferretdb-2.5.0"
|
||||
storage:
|
||||
storageClass: local-path
|
||||
walStorage:
|
||||
storageClass: local-path
|
||||
postgresUID: 999
|
||||
postgresGID: 999
|
||||
enableSuperuserAccess: true
|
||||
monitoring:
|
||||
enabled: true
|
||||
prometheusRule:
|
||||
enabled: true
|
||||
postgresql:
|
||||
shared_preload_libraries:
|
||||
- pg_cron
|
||||
- pg_documentdb_core
|
||||
- pg_documentdb
|
||||
- pg_stat_statements
|
||||
parameters:
|
||||
cron.database_name: 'postgres'
|
||||
shared_buffers: 128MB
|
||||
max_slot_wal_keep_size: 2000MB
|
||||
hot_standby_feedback: "on"
|
||||
initdb:
|
||||
postInitSQL:
|
||||
- 'CREATE EXTENSION IF NOT EXISTS documentdb CASCADE;'
|
||||
recovery:
|
||||
method: objectStore
|
||||
objectStore:
|
||||
destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/komodo/komodo-postgresql-17-cluster
|
||||
index: 1
|
||||
backup:
|
||||
objectStore:
|
||||
- name: external
|
||||
destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/komodo/komodo-postgresql-17-cluster
|
||||
index: 1
|
||||
retentionPolicy: "3d"
|
||||
scheduledBackups:
|
||||
- name: daily-backup
|
||||
suspend: true
|
||||
schedule: "0 0 0 * * *"
|
||||
backupName: external
|
||||
|
Reference in New Issue
Block a user