message
This commit is contained in:
parent
e606a7c383
commit
43a8c4c6e8
25
morevolumes.yaml
Normal file
25
morevolumes.yaml
Normal 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
26
sidecarlog.yaml
Normal 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" ]
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user