Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions multi-container-pod.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,9 @@ kind: Pod
metadata:
creationTimestamp: null
labels:
run: multi-cont-pod
name: multi-cont-pod
run: main
name: main
spec:
volumes:
- name: var-logs
emptyDir: {}
containers:
- image: busybox
command: ["/bin/sh"]
Expand All @@ -134,12 +131,18 @@ spec:
ports:
- containerPort: 80
volumeMounts:
- name: var-logs
- name: nginx-home
mountPath: /usr/share/nginx/html
volumes:
- name: nginx-home
emptyDir: {}
- name: var-logs
emptyDir: {}
dnsPolicy: ClusterFirst
restartPolicy: Never
status: {}


kubectl create -f multi-container.yaml

kubectl get po multi-cont-pod
Expand Down