Open kmova opened 5 years ago
This doesn't seem to cover the Jiva replica pods, which are created in the application's namespace rather than the openebs namespace. The ClusterRoleBinding above only allows pods in openebs to use hostPath volumes; it doesn't allow the replicas to do so.
Or am I missing something?
@cjyar The latest OpenEBS release 0.9 has the feature for creating Jiva pods in OpenEBS namespace. This can be set by adding one parameter in the corresponding StorageClass. Example snippet of SC:
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: jiva-pods-in-openebs-ns
annotations:
openebs.io/cas-type: jiva
cas.openebs.io/config: |
- name: DeployInOpenEBSNamespace
enabled: "true"
provisioner: openebs.io/provisioner-iscsi
More information can get from here.
The following steps were provided by @chtardif in the OpenEBS community channel - on how he configured PodSecurityPolicies(PSP) for OpenEBS.
Associate the above PSP to a ClusterRole
apiGroups: ['extensions'] resources: ['podsecuritypolicies'] verbs: ['use'] resourceNames:
Associate the above Privileged ClusterRole to OpenEBS Service Account