adding additional files
This commit is contained in:
parent
d2ab2b2449
commit
769a63cf0d
17
pod-secret-as-var.yaml
Normal file
17
pod-secret-as-var.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: mymysql
|
||||
spec:
|
||||
containers:
|
||||
- name: famke-mysql
|
||||
image: busybox
|
||||
command:
|
||||
- sleep
|
||||
- "3600"
|
||||
env:
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mysql
|
||||
key: password
|
||||
18
pod-secret.yaml
Normal file
18
pod-secret.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: secretbox2
|
||||
spec:
|
||||
containers:
|
||||
- name: secretbox
|
||||
image: busybox
|
||||
command:
|
||||
- sleep
|
||||
- "3600"
|
||||
volumeMounts:
|
||||
- name: secret
|
||||
mountPath: /secretstuff
|
||||
volumes:
|
||||
- name: secret
|
||||
secret:
|
||||
secretName: secretstuff
|
||||
Loading…
Reference in New Issue
Block a user