Skip to content

Commit 51c23e8

Browse files
authored
Create VolumeDemo
1 parent 0798bb5 commit 51c23e8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: pod-vol
5+
spec:
6+
containers:
7+
- image: nginx
8+
name: myn1
9+
volumeMounts:
10+
- mountPath: /data
11+
name: myvol
12+
volumes:
13+
- name: myvol
14+
hostPath:
15+
path: /home/mittal_sonal04/mydata
16+
type: DirectoryOrCreate

0 commit comments

Comments
 (0)