add postgresql client with secret
This commit is contained in:
parent
8300f3f043
commit
da9783c06d
1 changed files with 29 additions and 0 deletions
29
generic/postgres-client-pod-with-secrets.yaml
Normal file
29
generic/postgres-client-pod-with-secrets.yaml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: postgres-client
|
||||
spec:
|
||||
containers:
|
||||
- name: postgres
|
||||
image: postgres:18
|
||||
command: ["/bin/sh"]
|
||||
args:
|
||||
- -c
|
||||
- "sleep 1000000"
|
||||
volumeMounts:
|
||||
- mountPath: /postgres-mas
|
||||
name: postgres-mas
|
||||
- mountPath: /postgres-synapse
|
||||
name: postgres-synapse
|
||||
- mountPath: /postgres-app
|
||||
name: postgres-app
|
||||
volumes:
|
||||
- name: postgres-mas
|
||||
secret:
|
||||
secretName: postgres-mas-test
|
||||
- name: postgres-synapse
|
||||
secret:
|
||||
secretName: postgres-synapse-test
|
||||
- name: postgres-app
|
||||
secret:
|
||||
secretName: postgresql-test-openshift-postgresql-app
|
||||
Loading…
Add table
Add a link
Reference in a new issue