Create volume for openshift

Change-Id: I72e8a8b66f8dddd3ff5fe367b1ae6b10d2cc2d32
This commit is contained in:
Flavio Percoco 2017-11-21 13:20:37 +01:00
parent 834a2d9165
commit fb28a5859d
1 changed files with 16 additions and 0 deletions

View File

@ -31,6 +31,22 @@
fsGroup:
type: RunAsAny
EOF
cat <<EOF | kubectl create -f -
apiVersion: v1
kind: PersistentVolume
metadata:
name: openstack-test-volume
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
storageClassName: slow
hostPath:
path: /tmp
EOF
executable: /bin/bash
become: true
delegate_to: "primary"