Skip to content

Commit fc9237d

Browse files
authored
RHIDP-5612 - Fix platform related documentation for Operator (#1237)
1 parent 920b79b commit fc9237d

File tree

3 files changed

+4
-141
lines changed

3 files changed

+4
-141
lines changed

modules/installation/proc-rhdh-deploy-aks-operator.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ You can deploy your {product-short} on {aks-short} using the {product} Operator.
88

99
.Procedure
1010

11+
////
1112
. Obtain the {product} Operator manifest file, named `rhdh-operator-<VERSION>.yaml`, and modify the default configuration of `db-statefulset.yaml` and `deployment.yaml` by adding the following fragment:
1213
+
1314
--
@@ -39,6 +40,7 @@ kubectl apply -f rhdh-operator-<VERSION>.yaml
3940
Execution of the previous command is cluster-scoped and requires appropriate cluster privileges.
4041
====
4142
--
43+
////
4244

4345
. Create an `ImagePull Secret` named `rhdh-pull-secret` using your Red Hat credentials to access images from the protected `registry.redhat.io` as shown in the following example:
4446
+

modules/installation/proc-rhdh-deploy-eks-operator.adoc

Lines changed: 1 addition & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -127,72 +127,4 @@ kubectl -n rhdh-operator patch deployment \
127127
--type=merge
128128
----
129129
====
130-
--
131-
132-
. Update the default configuration of the operator to ensure that {product-short} resources can start correctly in {eks-short} using the following steps:
133-
.. Edit the `backstage-default-config` ConfigMap in the `rhdh-operator` namespace using the following command:
134-
+
135-
--
136-
[source,terminal]
137-
----
138-
kubectl -n rhdh-operator edit configmap backstage-default-config
139-
----
140-
--
141-
142-
.. Locate the `db-statefulset.yaml` string and add the `fsGroup` to its `spec.template.spec.securityContext`, as shown in the following example:
143-
+
144-
--
145-
[source,yaml]
146-
----
147-
db-statefulset.yaml: |
148-
apiVersion: apps/v1
149-
kind: StatefulSet
150-
--- TRUNCATED ---
151-
spec:
152-
--- TRUNCATED ---
153-
restartPolicy: Always
154-
securityContext:
155-
# You can assign any random value as fsGroup
156-
fsGroup: 2000
157-
serviceAccount: default
158-
serviceAccountName: default
159-
--- TRUNCATED ---
160-
----
161-
--
162-
163-
.. Locate the `deployment.yaml` string and add the `fsGroup` to its specification, as shown in the following example:
164-
+
165-
--
166-
[source,yaml]
167-
----
168-
deployment.yaml: |
169-
apiVersion: apps/v1
170-
kind: Deployment
171-
--- TRUNCATED ---
172-
spec:
173-
securityContext:
174-
# You can assign any random value as fsGroup
175-
fsGroup: 3000
176-
automountServiceAccountToken: false
177-
--- TRUNCATED ---
178-
----
179-
--
180-
181-
.. Locate the `service.yaml` string and change the `type` to `NodePort` as follows:
182-
+
183-
--
184-
[source,yaml]
185-
----
186-
service.yaml: |
187-
apiVersion: v1
188-
kind: Service
189-
spec:
190-
# NodePort is required for the ALB to route to the Service
191-
type: NodePort
192-
--- TRUNCATED ---
193-
----
194-
--
195-
196-
.. Save and exit.
197-
+
198-
Wait for a few minutes until the changes are automatically applied to the operator pods.
130+
--

modules/installation/proc-rhdh-deploy-gke-operator.adoc

Lines changed: 1 addition & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -136,75 +136,4 @@ kubectl -n rhdh-operator patch deployment \
136136
--type=merge
137137
----
138138
====
139-
--
140-
141-
. Update the default configuration of the Operator to ensure that {product-short} resources can start correctly in {gke-short} using the following steps:
142-
.. Edit the `backstage-default-config` ConfigMap in the `rhdh-operator` namespace using the following command:
143-
+
144-
--
145-
[source,terminal]
146-
----
147-
kubectl -n rhdh-operator edit configmap backstage-default-config
148-
----
149-
--
150-
151-
.. Locate the `db-statefulset.yaml` string and add the `fsGroup` to its `spec.template.spec.securityContext`, as shown in the following example:
152-
+
153-
--
154-
.`db-statefulset.yaml` fragment
155-
[source,yaml]
156-
----
157-
db-statefulset.yaml: |
158-
apiVersion: apps/v1
159-
kind: StatefulSet
160-
--- TRUNCATED ---
161-
spec:
162-
--- TRUNCATED ---
163-
restartPolicy: Always
164-
securityContext:
165-
# You can assign any random value as fsGroup
166-
fsGroup: 2000
167-
serviceAccount: default
168-
serviceAccountName: default
169-
--- TRUNCATED ---
170-
----
171-
--
172-
173-
.. Locate the `deployment.yaml` string and add the `fsGroup` to its specification, as shown in the following example:
174-
+
175-
--
176-
.`deployment.yaml` fragment
177-
[source,yaml]
178-
----
179-
deployment.yaml: |
180-
apiVersion: apps/v1
181-
kind: Deployment
182-
--- TRUNCATED ---
183-
spec:
184-
securityContext:
185-
# You can assign any random value as fsGroup
186-
fsGroup: 3000
187-
automountServiceAccountToken: false
188-
--- TRUNCATED ---
189-
----
190-
--
191-
192-
.. Locate the `service.yaml` string and change the `type` to `NodePort` as follows:
193-
+
194-
--
195-
.`service.yaml` fragment
196-
[source,yaml]
197-
----
198-
service.yaml: |
199-
apiVersion: v1
200-
kind: Service
201-
spec:
202-
# NodePort is required for the ALB to route to the Service
203-
type: NodePort
204-
--- TRUNCATED ---
205-
----
206-
--
207-
208-
.. Save and exit.
209-
+
210-
Wait until the changes are automatically applied to the Operator pods.
139+
--

0 commit comments

Comments
 (0)