Skip to content

Commit

Permalink
Create hosst-path-demo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
javahometech authored Jun 2, 2020
1 parent 73aa0ca commit b4b0620
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions volumes/hosst-path-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
kind: Pod
metadata:
name: host-path-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 b4b0620

Please sign in to comment.