File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -89,3 +89,42 @@ Now update your service account by running:
8989kubectl -n rabbitmq-system patch serviceaccount \
9090rabbitmq-cluster-operator -p '{"imagePullSecrets": [{"name": "rabbitmq-cluster-registry-access"}]}'
9191</pre >
92+
93+ ### <a id =' openshift ' class =' anchor ' href =' #openshift ' >Installation on OpenShift</a >
94+
95+ The RabbitMQ cluster operator runs as user ID ` 1000 ` and RabbitMQ runs as user ID ` 999 ` .
96+ By default OpenShift has security context constraints which disallow to create pods running with these user IDs.
97+ To install the RabbitMQ cluster operator on OpenShift, you need perform the following steps:
98+
99+ 1 . In above [ installation steps] ( #installation ) , after creating the namespace via ` kubectl create -f config/namespace/base/namespace.yaml ` but before
100+ creating the manager via ` kubectl -n rabbitmq-system create --kustomize config/manager/ ` , change the following fields:
101+
102+ <pre class =" lang-bash " >
103+ oc edit namespace rabbitmq-system
104+ </pre >
105+
106+ <pre class =" lang-yaml " >
107+ apiVersion: v1
108+ kind: Namespace
109+ metadata:
110+ annotations:
111+ ...
112+ openshift.io/sa.scc.supplemental-groups: 1000/1
113+ openshift.io/sa.scc.uid-range: 1000/1
114+ </pre >
115+
116+ 2 . For every namespace where the RabbitMQ cluster custom resources will be created (here we assume ` default ` namespace), change the following fields:
117+
118+ <pre class =" lang-bash " >
119+ oc edit namespace default
120+ </pre >
121+
122+ <pre class =" lang-yaml " >
123+ apiVersion: v1
124+ kind: Namespace
125+ metadata:
126+ annotations:
127+ ...
128+ openshift.io/sa.scc.supplemental-groups: 999/1
129+ openshift.io/sa.scc.uid-range: 999/1
130+ </pre >
You can’t perform that action at this time.
0 commit comments