Hawkbit updated for local-path SC 87/4387/1
authorkhemendra kumar <khemendra.kumar@huawei.com>
Wed, 4 Aug 2021 12:47:45 +0000 (18:17 +0530)
committerkhemendra kumar <khemendra.kumar@huawei.com>
Wed, 4 Aug 2021 12:47:45 +0000 (18:17 +0530)
Signed-off-by: khemendra kumar <khemendra.kumar@huawei.com>
Change-Id: Ia26fb2828ac58fc39f2e2c327dcddb69a40902b1

blueprints/iotgateway/playbooks/roles/el_hawkbit/tasks/install.yml

index 44907e4..82704c5 100644 (file)
   ignore_errors: yes
   no_log: True
 
+- name: local-path storage class setup
+  command: kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
+  ignore_errors: yes
+  no_log: True
+
+- name: setup default class
+  command: kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
+  ignore_errors: yes
+  no_log: True
 
 - name: Install hackbit
   command: helm install eclipse-hawkbit eclipse-iot/hawkbit