Jelajahi Sumber

Update daemonset to follow changes in openshift storage example:

https://github.com/openshift/origin/blob/v3.9.0/examples/storage-examples/local-examples/local-storage-provisioner-template.yaml
Diego Abelenda 7 tahun lalu
induk
melakukan
6500d241aa
1 mengubah file dengan 8 tambahan dan 0 penghapusan
  1. 8 0
      roles/openshift_persistentlocalstorage/tasks/main.yml

+ 8 - 0
roles/openshift_persistentlocalstorage/tasks/main.yml

@@ -119,11 +119,19 @@
                 name: provisioner
                 securityContext:
                   runAsUser: 0
+                  seLinuxOptions:
+                    level: "s0:c0.c1023"
                 volumeMounts:
                 - mountPath: "{{ persistentlocalstorage_path }}"
                   name: local-storage
+                - mountPath: /etc/provisioner/config
+                  name: provisioner-config
+                  readOnly: true
               serviceAccountName: local-volume-provisioner
               volumes:
               - hostPath:
                   path: "{{ persistentlocalstorage_path }}"
                 name: local-storage
+              - configMap:
+                  name: local-volume-provisioner-config
+                name: provisioner-config