git clone后按tutorial进行
关于apiversion: kubectl api-versions 查看
command: ["/bin/sh"]
args: ["-c", "if [ -f 'test' ]; then echo ok; else echo no; fi"]
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: Directory