Add snapshot-controller for CSI drivers and snapshot CRDs, add a default volumesnapshotclass when running cinder CSI (#6537)

* add snapshot-controller and v1beta1 snapshot api

* fix typo

* udpate manifest to v1beta1

* update

* update manifests

* fix spelling

* wait until crd is applied

* fix missing info in kube module

* revert snapshotclass

* add snapshot crds before applying the csi driver

* add crds, missed them in last commit

* use pull policy from kubespray
This commit is contained in:
Hugo Blom
2020-09-03 13:01:43 +02:00
committed by GitHub
parent 93698a8f73
commit 2ff7ab8d40
17 changed files with 778 additions and 5 deletions

View File

@@ -29,6 +29,14 @@ dependencies:
- apps
- metrics_server
- role: kubernetes-apps/csi_driver/csi_crd
when:
- cinder_csi_enabled
- inventory_hostname == groups['kube-master'][0]
tags:
- apps
- csi-driver
- role: kubernetes-apps/csi_driver/cinder
when:
- cinder_csi_enabled
@@ -77,6 +85,13 @@ dependencies:
- apps
- persistent_volumes
- role: kubernetes-apps/snapshots
when: inventory_hostname == groups['kube-master'][0]
tags:
- apps
- snapshots
- csi-driver
- role: kubernetes-apps/container_runtimes
when:
- inventory_hostname == groups['kube-master'][0]