Hawkbit updated for local-path SC
[eliot.git] / 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