Create test PV
Change-Id: Icf3d4708f63b84c132fa6c8399562277c896775d
This commit is contained in:
parent
4481a0b31e
commit
0daca0e572
|
@ -1,3 +1,34 @@
|
|||
{% if coe == 'kubernetes' %}
|
||||
- name: Prepare COE cluster
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
connection: local
|
||||
|
||||
vars:
|
||||
namespace: openstack
|
||||
coe_host: "http://localhost:8080"
|
||||
|
||||
tasks:
|
||||
- name: Create test PV
|
||||
shell:
|
||||
cmd: |
|
||||
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
|
||||
{% endif %}
|
||||
|
||||
- name: Provision {{project_name}}
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
|
|
Loading…
Reference in New Issue