Skip to content

Commit

Permalink
references to secret added to deployment yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BobBlank12 committed Apr 12, 2023
1 parent 4467a22 commit 62c951c
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions mongo-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,24 @@ spec:
selector:
matchLabels:
app: mongodb
template:
metadata:
labels:
app: mongodb
spec:
containers:
- name: mongodb
image: mongo
ports:
- containerPort: 27017
env:
- name: MONGO_INITDB_ROOT_USERNAME
value:
- name: MONGO_INITDB_ROOT_PASSWORD
value:
template:
metadata:
labels:
app: mongodb
spec:
containers:
- name: mongodb
image: mongo
ports:
- containerPort: 27017
env:
- name: MONGO_INITDB_ROOT_USERNAME
valueFrom:
secretKeyRef:
name: mongodb-secret
key: mongodb-root-username
- name: MONGO_INITDB_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mongodb-secret
key: mongodb-root-password

0 comments on commit 62c951c

Please sign in to comment.