feat: store ferret secret, scale
All checks were successful
lint-test-helm / lint-helm (push) Successful in 58s
render-manifests-push / render-manifests-push (push) Successful in 1m47s
renovate / renovate (push) Successful in 2m23s

This commit is contained in:
2026-02-05 22:55:30 -06:00
parent 3eda30bae0
commit 8933422e12
2 changed files with 15 additions and 12 deletions

View File

@@ -70,3 +70,10 @@ spec:
key: /cl01tl/komodo/ferret key: /cl01tl/komodo/ferret
metadataPolicy: None metadataPolicy: None
property: uri property: uri
- secretKey: password
remoteRef:
conversionStrategy: Default
decodingStrategy: None
key: /cl01tl/komodo/ferret
metadataPolicy: None
property: password

View File

@@ -2,7 +2,7 @@ komodo:
controllers: controllers:
main: main:
type: deployment type: deployment
replicas: 0 replicas: 1
strategy: Recreate strategy: Recreate
revisionHistoryLimit: 3 revisionHistoryLimit: 3
containers: containers:
@@ -57,7 +57,7 @@ komodo:
- name: DB_PASSWORD - name: DB_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: komodo-postgresql-17-fdb-cluster-app name: komodo-postgresql-17-fdb-cluster-ferret
key: password key: password
- name: KOMODO_DATABASE_URI - name: KOMODO_DATABASE_URI
value: mongodb://$(DB_USERNAME):$(DB_PASSWORD)@komodo-ferretdb-2.komodo:27017/komodo value: mongodb://$(DB_USERNAME):$(DB_PASSWORD)@komodo-ferretdb-2.komodo:27017/komodo
@@ -95,11 +95,15 @@ komodo:
tag: 2.7.0 tag: 2.7.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
env: env:
- name: FERRETDB_POSTGRESQL_URL - name: DB_USERNAME
value: ferret
- name: DB_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: komodo-postgresql-17-fdb-cluster-ferret name: komodo-postgresql-17-fdb-cluster-ferret
key: uri key: password
- name: FERRETDB_POSTGRESQL_URL
value: postgresql://$(DB_USERNAME):$(DB_PASSWORD)@komodo-postgresql-17-fdb-cluster-rw.komodo.svc.cluster.local:5432/ferretDB
resources: resources:
requests: requests:
cpu: 10m cpu: 10m
@@ -198,15 +202,7 @@ postgresql-17-fdb-cluster:
postInitApplicationSQL: postInitApplicationSQL:
- CREATE EXTENSION IF NOT EXISTS pg_cron; - CREATE EXTENSION IF NOT EXISTS pg_cron;
- CREATE EXTENSION IF NOT EXISTS documentdb CASCADE; - CREATE EXTENSION IF NOT EXISTS documentdb CASCADE;
- ALTER USER ferret WITH PASSWORD '${PASSWORD}';
- GRANT documentdb_admin_role TO ferret; - GRANT documentdb_admin_role TO ferret;
- GRANT USAGE ON SCHEMA documentdb_core TO ferret;
- GRANT USAGE ON SCHEMA documentdb_api TO ferret;
- GRANT USAGE ON SCHEMA documentdb_core TO pg_monitor;
- GRANT USAGE ON SCHEMA documentdb_api TO pg_monitor;
- GRANT SELECT ON ALL TABLES IN SCHEMA documentdb_core TO pg_monitor;
- GRANT SELECT ON ALL TABLES IN SCHEMA documentdb_api TO pg_monitor;
- GRANT SELECT ON ALL TABLES IN SCHEMA documentdb_api_internal TO pg_monitor;
recovery: recovery:
method: objectStore method: objectStore
objectStore: objectStore: