Add longhorn & longhorn-crypt VolumeSnapshotClass
This commit is contained in:
parent
838b129607
commit
022a821661
1 changed files with 15 additions and 0 deletions
|
|
@ -72,6 +72,21 @@
|
||||||
csi.storage.k8s.io/fsType: ext4
|
csi.storage.k8s.io/fsType: ext4
|
||||||
recurringJobSelector: '[{"name":"snapshot","isGroup":true}, {"name":"backup-daily","isGroup":true}]'
|
recurringJobSelector: '[{"name":"snapshot","isGroup":true}, {"name":"backup-daily","isGroup":true}]'
|
||||||
|
|
||||||
|
- name: Add longhorn & longhorn-crypt VolumeSnapshotClass
|
||||||
|
kubernetes.core.k8s:
|
||||||
|
state: present
|
||||||
|
context: "{{ my_context }}"
|
||||||
|
definition:
|
||||||
|
kind: VolumeSnapshotClass
|
||||||
|
apiVersion: snapshot.storage.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: "{{ item }}"
|
||||||
|
driver: driver.longhorn.io
|
||||||
|
deletionPolicy: Delete
|
||||||
|
with_items:
|
||||||
|
- "longhorn"
|
||||||
|
- "longhorn-crypt"
|
||||||
|
|
||||||
- name: Install Prometheus rules
|
- name: Install Prometheus rules
|
||||||
kubernetes.core.k8s:
|
kubernetes.core.k8s:
|
||||||
state: "present"
|
state: "present"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue