Skip to content

Commit

Permalink
fix of secrets usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tunacinsoy committed Sep 3, 2024
1 parent a2b7266 commit 02481d8
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions manifests/blog-app/blog-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 02481d8

Please sign in to comment.