Skip to content

Commit

Permalink
Update pod.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
DeekshithSN committed Apr 25, 2021
1 parent 6acfc61 commit 80e9143
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions volume/hostpath/pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
kind: Pod
metadata:
name: test-pd
spec:
containers:
- image: k8s.gcr.io/test-webserver
name: test-container
volumeMounts:
- mountPath: /test-pd
name: test-volume
volumes:
- name: test-volume
hostPath:
# directory location on host
path: /data
# this field is optional
type: DirectoryOrCreate

0 comments on commit 80e9143

Please sign in to comment.