Skip to content

Commit

Permalink
pvc
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee committed Jan 3, 2025
1 parent 86c5600 commit 01887cb
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions roles/clusterlust.openebs/tasks/installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
update_repo_cache: true
wait: true

- name: Remove PersistentVolumeClaim
when: desired_state == 'absent'
kubernetes.core.k8s:
state: absent
namespace: "{{ ebs_namespace }}"
definition:
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: local-hostpath-pvc

- name: Manage Default StorageClass
kubernetes.core.k8s:
state: "{{ desired_state }}"
Expand Down Expand Up @@ -49,9 +60,10 @@
values: "{{ groups['kube_node'] | map('extract', hostvars, 'inventory_hostname') | list }}"


- name: Manage PersistentVolumeClaim
- name: Create PersistentVolumeClaim
when: desired_state == 'present'
kubernetes.core.k8s:
state: "{{ desired_state }}"
state: present
namespace: "{{ ebs_namespace }}"
definition:
kind: PersistentVolumeClaim
Expand Down

0 comments on commit 01887cb

Please sign in to comment.