Skip to content

Commit 92d7246

Browse files
committed
Refactoring to reuse common steps
Signed-off-by: Fabrice Flore-Thébault <[email protected]>
1 parent 34c1db6 commit 92d7246

14 files changed

+181
-279
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
3+
[id="assembly-install-rhdh-eks-operator"]
4+
= Installing {product-short} on {aks-brand-name} by using the Operator
5+
6+
The {product} Operator installation requires the Operator Lifecycle Manager (OLM) framework.
7+
8+
include::modules/installation/proc-installing-the-operator-on-aks-by-using-olm.adoc[leveloffset=+1]
9+
10+
include::modules/installation/proc-running-rhdh-on-aks-by-using-the-operator.adoc[leveloffset=+1]
11+

assemblies/assembly-install-rhdh-eks-operator.adoc renamed to assemblies/assembly-installing-rhdh-on-eks-by-using-the-operator.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55

66
The {product} Operator installation requires the Operator Lifecycle Manager (OLM) framework.
77

8-
include::modules/installation/proc-rhdh-deploy-eks-operator.adoc[leveloffset=+1]
8+
include::modules/installation/proc-installing-the-operator-on-eks-by-using-olm.adoc[leveloffset=+1]
99

10-
.Additional resources
11-
* link:https://olm.operatorframework.io/docs/[Operator Lifecycle Manager(OLM)]
10+
include::modules/installation/proc-running-rhdh-on-eks-by-using-the-operator.adoc[leveloffset=+1]
1211

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="proc-rhdh-deploy-aks-operator_{context}"]
4+
= Installing the {product} operator on {aks-brand-name} by using the OLM framework
5+
6+
You can install the {product-short} Operator on {aks-brand-name} ({aks-short}) by using the https://olm.operatorframework.io[Operator Lifecycle Manager (OLM) framework].
7+
Then, you can proceed to deploy your {product-short} instance in {aks-short}.
8+
9+
.Prerequisites
10+
include::snip-installing-the-operator-common-prerequisites.adoc[]
11+
12+
.Procedure
13+
include::snip-installing-the-operator-common-steps.adoc[]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="proc-installing-the-operator-on-eks-by-using-olm_{context}"]
4+
= Installing the {product-short} Operator on {eks-brand-name} by using the OLM framework
5+
6+
You can install the {product-short} Operator on {eks-brand-name} ({eks-short}) using the https://olm.operatorframework.io[Operator Lifecycle Manager (OLM) framework].
7+
Following that, you can proceed to deploy your {product-short} instance in {eks-short}.
8+
9+
.Prerequisites
10+
* You have set the context to the {eks-short} cluster in your current `kubeconfig`.
11+
For more information, see https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html[Creating or updating a kubeconfig file for an Amazon {eks-short} cluster].
12+
13+
include::snip-installing-the-operator-common-prerequisites.adoc[]
14+
15+
.Procedure
16+
include::snip-installing-the-operator-common-steps.adoc[]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="proc-installing-the-operator-by-using-olm_{context}"]
4+
= Installing the {product-short} Operator on {gke-brand-name} by using the OLM framework
5+
6+
You can install the {product-short} Operator on {gke-brand-name} ({gke-short}) by using the https://olm.operatorframework.io[Operator Lifecycle Manager (OLM) framework].
7+
Following that, you can proceed to deploy your {product-short} instance in {gke-short}.
8+
9+
.Prerequisites
10+
* You have logged in to your Google account and created a https://cloud.google.com/kubernetes-engine/docs/how-to/creating-an-autopilot-cluster[GKE Autopilot] or https://cloud.google.com/kubernetes-engine/docs/how-to/creating-a-zonal-cluster[GKE Standard] cluster.
11+
12+
include::snip-installing-the-operator-common-prerequisites.adoc[]
13+
14+
.Procedure
15+
. Connect to your GKE cluster:
16+
+
17+
[source,terminal]
18+
----
19+
$ gcloud container clusters get-credentials <cluster-name> --location=<cluster-location>
20+
----
21+
_<cluster-name>_:: Enter your GKE cluster name.
22+
_<cluster-location>_:: Enter your GKE cluster location.
23+
include::snip-installing-the-operator-common-steps.adoc[]

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

Lines changed: 0 additions & 123 deletions
This file was deleted.

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

Lines changed: 0 additions & 143 deletions
This file was deleted.

modules/installation/proc-rhdh-deploy-aks-operator.adoc renamed to modules/installation/proc-running-rhdh-on-aks-by-using-the-operator.adoc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
:_mod-docs-content-type: PROCEDURE
22

3+
34
[id="proc-rhdh-deploy-aks-operator_{context}"]
45
= Deploying {product-short} on {aks-short} with the Operator
56

67
You can install the {product-short} Operator on {aks-brand-name} ({aks-short}) using the https://olm.operatorframework.io[Operator Lifecycle Manager (OLM) framework].
7-
Following that, you can proceed to deploy your {product-short} instance in {aks-short}.
8+
Then, you can proceed to deploy your {product-short} instance in {aks-short}.
89

910
For information about the OLM, see link:https://olm.operatorframework.io/docs/[Operator Lifecycle Manager(OLM)] documentation.
1011

@@ -21,18 +22,23 @@ For more information, see https://kubernetes.io/docs/tasks/tools/#kubectl[Instal
2122
* Your system meets the link:https://docs.redhat.com/en/documentation/red_hat_developer_hub/1.7/html-single/about_red_hat_developer_hub/index#rhdh-sizing_about-rhdh[sizing requirements for {product}].
2223

2324
.Procedure
24-
. 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:
25+
. Create the `rhdh-operator` namespace that will contain the {product} Operator:
2526
+
26-
--
27-
[source,bash]
27+
[source,terminal]
2828
----
29-
kubectl -n <your_namespace> create secret docker-registry rhdh-pull-secret \
29+
$ kubectl create namespace rhdh-operator
30+
----
31+
32+
. Create a pull secret using your {company-name} credentials to access images from the protected {company-name} registry:
33+
+
34+
[source,terminal]
35+
----
36+
$ kubectl -n rhdh-operator create secret docker-registry rhdh-pull-secret \
3037
--docker-server=registry.redhat.io \
3138
--docker-username=<redhat_user_name> \
3239
--docker-password=<redhat_password> \
3340
--docker-email=<email>
3441
----
35-
--
3642

3743
. Create an Ingress manifest file, named `rhdh-ingress.yaml`, specifying your {product-short} service name as follows:
3844
+

modules/installation/proc-deploy-rhdh-instance-eks.adoc renamed to modules/installation/proc-running-rhdh-on-eks-by-using-the-operator.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:_mod-docs-content-type: PROCEDURE
22

3-
[id="proc-deploy-rhdh-instance-eks.adoc_{context}"]
4-
= Deploying the {product-short} instance on {eks-short} with the Operator
3+
[id="proc-running-rhdh-on-eks-by-using-the-operator_{context}"]
4+
= Running {product} on {eks-brand-name} by using the Operator
55

66
.Prerequisites
77

modules/installation/proc-deploy-rhdh-instance-gke.adoc renamed to modules/installation/proc-running-rhdh-on-gke-by-using-the-operator.adoc

File renamed without changes.

0 commit comments

Comments
 (0)