From a3858f1c6d33b7e73ec57ba70bca1a14da07f3fd Mon Sep 17 00:00:00 2001 From: Gerry-Forde <63045020+Gerry-Forde@users.noreply.github.com> Date: Fri, 27 Jun 2025 09:54:18 +0100 Subject: [PATCH] RHIDP-5612 - Fix platform related documentation for Operator --- .../proc-rhdh-deploy-aks-operator.adoc | 2 + .../proc-rhdh-deploy-eks-operator.adoc | 70 +----------------- .../proc-rhdh-deploy-gke-operator.adoc | 73 +------------------ 3 files changed, 4 insertions(+), 141 deletions(-) diff --git a/modules/installation/proc-rhdh-deploy-aks-operator.adoc b/modules/installation/proc-rhdh-deploy-aks-operator.adoc index 3ca2cb4bcb..2b987ef171 100644 --- a/modules/installation/proc-rhdh-deploy-aks-operator.adoc +++ b/modules/installation/proc-rhdh-deploy-aks-operator.adoc @@ -8,6 +8,7 @@ You can deploy your {product-short} on {aks-short} using the {product} Operator. .Procedure +//// . Obtain the {product} Operator manifest file, named `rhdh-operator-.yaml`, and modify the default configuration of `db-statefulset.yaml` and `deployment.yaml` by adding the following fragment: + -- @@ -39,6 +40,7 @@ kubectl apply -f rhdh-operator-.yaml Execution of the previous command is cluster-scoped and requires appropriate cluster privileges. ==== -- +//// . 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: + diff --git a/modules/installation/proc-rhdh-deploy-eks-operator.adoc b/modules/installation/proc-rhdh-deploy-eks-operator.adoc index 0e4c0eed94..2208c809ab 100644 --- a/modules/installation/proc-rhdh-deploy-eks-operator.adoc +++ b/modules/installation/proc-rhdh-deploy-eks-operator.adoc @@ -127,72 +127,4 @@ kubectl -n rhdh-operator patch deployment \ --type=merge ---- ==== --- - -. Update the default configuration of the operator to ensure that {product-short} resources can start correctly in {eks-short} using the following steps: -.. Edit the `backstage-default-config` ConfigMap in the `rhdh-operator` namespace using the following command: -+ --- -[source,terminal] ----- -kubectl -n rhdh-operator edit configmap backstage-default-config ----- --- - -.. Locate the `db-statefulset.yaml` string and add the `fsGroup` to its `spec.template.spec.securityContext`, as shown in the following example: -+ --- -[source,yaml] ----- - db-statefulset.yaml: | - apiVersion: apps/v1 - kind: StatefulSet ---- TRUNCATED --- - spec: - --- TRUNCATED --- - restartPolicy: Always - securityContext: - # You can assign any random value as fsGroup - fsGroup: 2000 - serviceAccount: default - serviceAccountName: default ---- TRUNCATED --- ----- --- - -.. Locate the `deployment.yaml` string and add the `fsGroup` to its specification, as shown in the following example: -+ --- -[source,yaml] ----- - deployment.yaml: | - apiVersion: apps/v1 - kind: Deployment ---- TRUNCATED --- - spec: - securityContext: - # You can assign any random value as fsGroup - fsGroup: 3000 - automountServiceAccountToken: false ---- TRUNCATED --- ----- --- - -.. Locate the `service.yaml` string and change the `type` to `NodePort` as follows: -+ --- -[source,yaml] ----- - service.yaml: | - apiVersion: v1 - kind: Service - spec: - # NodePort is required for the ALB to route to the Service - type: NodePort ---- TRUNCATED --- ----- --- - -.. Save and exit. -+ -Wait for a few minutes until the changes are automatically applied to the operator pods. +-- \ No newline at end of file diff --git a/modules/installation/proc-rhdh-deploy-gke-operator.adoc b/modules/installation/proc-rhdh-deploy-gke-operator.adoc index b55021b404..3500187076 100644 --- a/modules/installation/proc-rhdh-deploy-gke-operator.adoc +++ b/modules/installation/proc-rhdh-deploy-gke-operator.adoc @@ -136,75 +136,4 @@ kubectl -n rhdh-operator patch deployment \ --type=merge ---- ==== --- - -. Update the default configuration of the Operator to ensure that {product-short} resources can start correctly in {gke-short} using the following steps: -.. Edit the `backstage-default-config` ConfigMap in the `rhdh-operator` namespace using the following command: -+ --- -[source,terminal] ----- -kubectl -n rhdh-operator edit configmap backstage-default-config ----- --- - -.. Locate the `db-statefulset.yaml` string and add the `fsGroup` to its `spec.template.spec.securityContext`, as shown in the following example: -+ --- -.`db-statefulset.yaml` fragment -[source,yaml] ----- - db-statefulset.yaml: | - apiVersion: apps/v1 - kind: StatefulSet ---- TRUNCATED --- - spec: - --- TRUNCATED --- - restartPolicy: Always - securityContext: - # You can assign any random value as fsGroup - fsGroup: 2000 - serviceAccount: default - serviceAccountName: default ---- TRUNCATED --- ----- --- - -.. Locate the `deployment.yaml` string and add the `fsGroup` to its specification, as shown in the following example: -+ --- -.`deployment.yaml` fragment -[source,yaml] ----- - deployment.yaml: | - apiVersion: apps/v1 - kind: Deployment ---- TRUNCATED --- - spec: - securityContext: - # You can assign any random value as fsGroup - fsGroup: 3000 - automountServiceAccountToken: false ---- TRUNCATED --- ----- --- - -.. Locate the `service.yaml` string and change the `type` to `NodePort` as follows: -+ --- -.`service.yaml` fragment -[source,yaml] ----- - service.yaml: | - apiVersion: v1 - kind: Service - spec: - # NodePort is required for the ALB to route to the Service - type: NodePort ---- TRUNCATED --- ----- --- - -.. Save and exit. -+ -Wait until the changes are automatically applied to the Operator pods. \ No newline at end of file +-- \ No newline at end of file