Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add required OpenShift manual installation steps #1050

Merged
merged 1 commit into from
Sep 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions site/kubernetes/operator/install-operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,42 @@ Now update your service account by running:
kubectl -n rabbitmq-system patch serviceaccount \
rabbitmq-cluster-operator -p '{"imagePullSecrets": [{"name": "rabbitmq-cluster-registry-access"}]}'
</pre>

### <a id='openshift' class='anchor' href='#openshift'>Installation on OpenShift</a>

The RabbitMQ cluster operator runs as user ID `1000` and RabbitMQ runs as user ID `999`.
By default OpenShift has security context constraints which disallow to create pods running with these user IDs.
To install the RabbitMQ cluster operator on OpenShift, you need perform the following steps:

1. In above [installation steps](#installation), after creating the namespace via `kubectl create -f config/namespace/base/namespace.yaml` but before
creating the manager via `kubectl -n rabbitmq-system create --kustomize config/manager/`, change the following fields:

<pre class="lang-bash">
oc edit namespace rabbitmq-system
</pre>

<pre class="lang-yaml">
apiVersion: v1
kind: Namespace
metadata:
annotations:
...
openshift.io/sa.scc.supplemental-groups: 1000/1
openshift.io/sa.scc.uid-range: 1000/1
</pre>

2. For every namespace where the RabbitMQ cluster custom resources will be created (here we assume `default` namespace), change the following fields:

<pre class="lang-bash">
oc edit namespace default
</pre>

<pre class="lang-yaml">
apiVersion: v1
kind: Namespace
metadata:
annotations:
...
openshift.io/sa.scc.supplemental-groups: 999/1
openshift.io/sa.scc.uid-range: 999/1
</pre>