feat(k8s): add RabbitMQ configurations and update secrets

Add a new extract for RabbitMQ in the secrets and include
AMQP_URL in local secrets. Update the merge policy and
engine version in the deployment template. Remove unused
RabbitMQ secret reference from the deployment. These changes
improve configuration management and ensure consistency
between environments.
This commit is contained in:
2025-04-08 07:49:54 +02:00
parent ba099eff51
commit 2ba10d763d
3 changed files with 5 additions and 2 deletions
-2
View File
@@ -62,8 +62,6 @@ spec:
envFrom: envFrom:
- secretRef: - secretRef:
name: schemas name: schemas
- secretRef:
name: rabbitmq
restartPolicy: Always restartPolicy: Always
serviceAccountName: schemas serviceAccountName: schemas
--- ---
+1
View File
@@ -5,3 +5,4 @@ metadata:
stringData: stringData:
API_KEY: supersecret123! API_KEY: supersecret123!
POSTGRES_URL: "postgres://postgres:postgres@postgres:5432/schemas?sslmode=disable" POSTGRES_URL: "postgres://postgres:postgres@postgres:5432/schemas?sslmode=disable"
AMQP_URL: "amqp://user:password@rabbitmq:5672/"
+4
View File
@@ -11,6 +11,8 @@ spec:
target: target:
creationPolicy: Owner creationPolicy: Owner
template: template:
mergePolicy: Merge
engineVersion: 'v2'
data: data:
POSTGRES_URL: "postgres://{{ .DB_USERNAME }}:{{ .DB_PASSWORD }}@{{ .DB_HOST }}:{{ .DB_PORT }}/schemas?sslmode=disable" POSTGRES_URL: "postgres://{{ .DB_USERNAME }}:{{ .DB_PASSWORD }}@{{ .DB_HOST }}:{{ .DB_PORT }}/schemas?sslmode=disable"
API_KEY: "{{ .API_KEY }}" API_KEY: "{{ .API_KEY }}"
@@ -21,3 +23,5 @@ spec:
key: services/schemas key: services/schemas
- extract: - extract:
key: rds/postgres/prod-psql key: rds/postgres/prod-psql
- extract:
key: mq/rabbit/prod