Add DigitalOcean storage
This commit is contained in:
parent
a314988c99
commit
4840d9e0e1
24 changed files with 587 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
- name: Local Path setup
|
||||
block:
|
||||
- include_tasks: "local.yml"
|
||||
- include_tasks: "digital_ocean.yml"
|
||||
- include_tasks: "linode.yml"
|
||||
|
||||
- name: Select the default StorageClass
|
||||
|
|
@ -16,3 +17,18 @@
|
|||
storageclass.kubernetes.io/is-default-class: "true"
|
||||
when:
|
||||
- storage_default_storageclass is defined
|
||||
|
||||
- name: Select the default VolumeSnapshotClass
|
||||
k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
definition:
|
||||
apiVersion: v1
|
||||
kind: VolumeSnapshotClass
|
||||
metadata:
|
||||
name: "{{ storage_default_storageclass }}"
|
||||
annotations:
|
||||
snapshot.storage.kubernetes.io/is-default-class: "true"
|
||||
when:
|
||||
- storage_default_storageclass is defined
|
||||
- storage_default_storageclass == "do-block-storage"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue