Access mode for hostPath type kubernetes PVs has to be set
explicitly as setting it with pod's securityContext is not
supported.
Change-Id: I60ed71001fc7859440510f17c1989b35d28c37b5
Issue-ID: INT-1926
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
   - name: kube-prometheus
     capacity: "6Gi"
     path_prefix: "{{ nfs_mount_path }}"
+    owner: 1000  # derived from prometheus.prometheusSpec.securityContext.runAsUser
+    group: 2000  # derived from prometheus.prometheusSpec.securityContext.fsGroup
 
     wait: True
     template: pv.yaml.j2
   loop: "{{ k8s_volumes }}"
+
+- name: Create host paths for PVs and set their permissions
+  file:
+    path: "{{ item.path_prefix }}/{{ item.name }}"
+    state: directory
+    owner: "{{ item.owner | default(0) }}"
+    group: "{{ item.group | default(0) }}"
+  loop: "{{ k8s_volumes }}"