Skip to content
Snippets Groups Projects
Commit 65ad5409 authored by ludo8147's avatar ludo8147
Browse files

deployemnt with password mount

parent e6f94bf1
No related branches found
No related tags found
No related merge requests found
Pipeline #68727 failed
...@@ -40,10 +40,7 @@ spec: ...@@ -40,10 +40,7 @@ spec:
name: webservice-config name: webservice-config
key: DB_PORT key: DB_PORT
- name: DB_PASSWORD - name: DB_PASSWORD
valueFrom: value: /etc/secrets/db-password
secretKeyRef:
name: webservice-secrets
key: DB_PASSWORD
- name: ENV_NAME - name: ENV_NAME
valueFrom: valueFrom:
configMapKeyRef: configMapKeyRef:
...@@ -71,6 +68,15 @@ spec: ...@@ -71,6 +68,15 @@ spec:
volumeMounts: volumeMounts:
- name: tmp - name: tmp
mountPath: /tmp mountPath: /tmp
- name: db-password
mountPath: /etc/secrets
readOnly: true
volumes: volumes:
- name: tmp - name: tmp
emptyDir: {} emptyDir: {}
\ No newline at end of file - name: db-password
secret:
secretName: webservice-secrets
items:
- key: DB_PASSWORD
path: db-password
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment