Complete longhorn uninstall
This commit is contained in:
parent
1b4b097f57
commit
eaf9ae9d1a
1 changed files with 21 additions and 0 deletions
|
|
@ -96,6 +96,27 @@
|
||||||
with_items:
|
with_items:
|
||||||
# - "longhorn_ingressroute.yaml.j2"
|
# - "longhorn_ingressroute.yaml.j2"
|
||||||
- "longhorn-namespace.yml.j2"
|
- "longhorn-namespace.yml.j2"
|
||||||
|
|
||||||
|
- name: Remove longhorn-crypt StorageClass
|
||||||
|
kubernetes.core.k8s:
|
||||||
|
state: absent
|
||||||
|
context: "{{ my_context }}"
|
||||||
|
definition:
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
kind: StorageClass
|
||||||
|
metadata:
|
||||||
|
name: longhorn-crypt
|
||||||
|
|
||||||
|
# - name: Remove longhorn Recurring Jobs
|
||||||
|
# kubernetes.core.k8s:
|
||||||
|
# state: absent
|
||||||
|
# context: "{{ my_context }}"
|
||||||
|
# namespace: "{{ storage_longhorn_namespace }}"
|
||||||
|
# resource_definition: "{{ lookup('template', 'longhorn/longhorn_recurringjob.yml.j2') | from_yaml }}"
|
||||||
|
# with_items:
|
||||||
|
# - { name: "snapshot", cron: "1 * * * *", task: "snapshot", retain: 25 }
|
||||||
|
# - { name: "backup-daily", cron: "0 1 * * *", task: "backup", retain: 8 }
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- not storage_longhorn_enabled
|
- not storage_longhorn_enabled
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue