Use right path for PV

Change-Id: I781564083f528eba7cc5f32fae6d0445d468072d
This commit is contained in:
Flavio Percoco 2017-11-30 13:49:09 +01:00
parent 39698b5733
commit d00b23f4e2
1 changed files with 4 additions and 1 deletions

View File

@ -32,6 +32,9 @@
type: RunAsAny
EOF
sudo mkdir /tmp/test-volume
sudo chmod 777 /tmp/test-volume
cat <<EOF | kubectl create -f -
apiVersion: v1
kind: PersistentVolume
@ -45,7 +48,7 @@
persistentVolumeReclaimPolicy: Recycle
storageClassName: slow
hostPath:
path: /tmp
path: /tmp/test-volume
EOF
executable: /bin/bash
become: true