Skip to content

Commit

Permalink
Added a pod with host path
Browse files Browse the repository at this point in the history
  • Loading branch information
qtsathish committed Apr 11, 2021
1 parent 53ef762 commit a19d716
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions April21/volumes/volumedemo3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
apiVersion: v1
kind: Pod
metadata:
name: pod-with-multiple-volume
spec:
containers:
- image: alpine
name: alpine1-container
args:
- /bin/sh
- -c
- sleep 60s
volumeMounts:
- mountPath: /data
name: data-volume
- mountPath: /var/log
name: logs-volume
- image: alpine
name: alpine2-container
args:
- /bin/sh
- -c
- sleep 60s
volumeMounts:
- mountPath: /data
name: data-volume
- mountPath: /var/log
name: logs-volume
- image: ubuntu
name: ubuntu-container
args:
- /bin/bash
- -c
- sleep 60s
volumeMounts:
- mountPath: /data
name: data-volume
- mountPath: /var/log
name: logs-volume
volumes:
- name: data-volume
emptyDir: {}
- name: logs-volume
hostPath:
path: /var/log

0 comments on commit a19d716

Please sign in to comment.