This commit is contained in:
sandervanvugt 2022-11-28 12:20:43 -08:00
parent e606a7c383
commit 43a8c4c6e8
2 changed files with 51 additions and 0 deletions

25
morevolumes.yaml Normal file
View File

@ -0,0 +1,25 @@
apiVersion: v1
kind: Pod
metadata:
name: morevol
spec:
containers:
- name: centos1
image: centos:7
command:
- sleep
- "3600"
volumeMounts:
- mountPath: /centos1
name: test
- name: centos2
image: centos:7
command:
- sleep
- "3600"
volumeMounts:
- mountPath: /centos2
name: test
volumes:
- name: test
emptyDir: {}

26
sidecarlog.yaml Normal file
View File

@ -0,0 +1,26 @@
apiVersion: v1
kind: Pod
metadata:
name: two-containers
spec:
volumes:
- name: shared-data
emptyDir: {}
containers:
- name: nginx-container
image: nginx
volumeMounts:
- name: shared-data
mountPath: /usr/share/nginx/html
- name: busybox-container
image: busybox
volumeMounts:
- name: shared-data
mountPath: /messages
command: ["/bin/sh"]
args: ["-c", "echo hello from the cluster > /messages/index.html && sleep 600" ]