Provision Azure Files ReadWriteMany Persistent Volumes on Azure OpenShift: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 11: | Line 11: | ||
The OpenShift service principal can be obtained as described here: {{Internal|OpenShift_on_Azure#Obtain_the_Service_Principal|Obtain the OpenShift cluster service principal}} | The OpenShift service principal can be obtained as described here: {{Internal|OpenShift_on_Azure#Obtain_the_Service_Principal|Obtain the OpenShift cluster service principal}} | ||
Assign the role: | |||
<syntaxhighlight lang='bash'> | |||
az role assignment create –-role Contributor -–assignee <openshift-cluster-service-principal> -g <openshift-cluster-resource-group> | |||
</syntaxhighlight> |
Revision as of 20:36, 25 November 2020
External
Internal
Procedure
1. Create a storage account with its dedicated resource group. Why? Why can't we use the OpenShift cluster resource group?. Use this:
2. Give the OpenShift service principal "listKey" permission on the new storage account resource group. Assign the "Contributor" role to achieve this.
The OpenShift service principal can be obtained as described here:
Assign the role:
az role assignment create –-role Contributor -–assignee <openshift-cluster-service-principal> -g <openshift-cluster-resource-group>