From 02481d836993a909761d7ee67c3b954bd63d650a Mon Sep 17 00:00:00 2001 From: tuna Date: Tue, 3 Sep 2024 23:24:49 +0200 Subject: [PATCH] fix of secrets usage --- manifests/blog-app/blog-app.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/manifests/blog-app/blog-app.yaml b/manifests/blog-app/blog-app.yaml index f2a60ed..3e88064 100644 --- a/manifests/blog-app/blog-app.yaml +++ b/manifests/blog-app/blog-app.yaml @@ -28,8 +28,7 @@ spec: - containerPort: 27017 envFrom: - secretRef: - # mongodb-creds-external for external-secrets - name: mongodb-creds-external + name: mongodb-creds volumeMounts: - name: mongodb-data mountPath: /data/db @@ -86,12 +85,12 @@ spec: - name: MONGODB_USERNAME valueFrom: secretKeyRef: - name: mongodb-creds-external + name: mongodb-creds key: MONGO_INITDB_ROOT_USERNAME - name: MONGODB_PASSWORD valueFrom: secretKeyRef: - name: mongodb-creds-external + name: mongodb-creds key: MONGO_INITDB_ROOT_PASSWORD --- apiVersion: v1 @@ -132,12 +131,12 @@ spec: - name: MONGODB_USERNAME valueFrom: secretKeyRef: - name: mongodb-creds-external + name: mongodb-creds key: MONGO_INITDB_ROOT_USERNAME - name: MONGODB_PASSWORD valueFrom: secretKeyRef: - name: mongodb-creds-external + name: mongodb-creds key: MONGO_INITDB_ROOT_PASSWORD --- apiVersion: v1 @@ -178,12 +177,12 @@ spec: - name: MONGODB_USERNAME valueFrom: secretKeyRef: - name: mongodb-creds-external + name: mongodb-creds key: MONGO_INITDB_ROOT_USERNAME - name: MONGODB_PASSWORD valueFrom: secretKeyRef: - name: mongodb-creds-external + name: mongodb-creds key: MONGO_INITDB_ROOT_PASSWORD --- apiVersion: v1 @@ -224,12 +223,12 @@ spec: - name: MONGODB_USERNAME valueFrom: secretKeyRef: - name: mongodb-creds-external + name: mongodb-creds key: MONGO_INITDB_ROOT_USERNAME - name: MONGODB_PASSWORD valueFrom: secretKeyRef: - name: mongodb-creds-external + name: mongodb-creds key: MONGO_INITDB_ROOT_PASSWORD --- apiVersion: v1