Skip to content

Commit 6cb7da2

Browse files
themr0crm3l
andauthored
RHDHBUGS-1109 - Added OLM framework prerequisites for AKS and reused common content (#1382)
* RHDHBUGS-1109 - Added OLM framework prerequisites for AKS Signed-off-by: Fabrice Flore-Thébault <[email protected]> * Refactoring to reuse common steps Signed-off-by: Fabrice Flore-Thébault <[email protected]> * Update modules/installation/proc-provisioning-your-pull-secret-to-your-rhdh-instance-namespace.adoc Signed-off-by: Fabrice Flore-Thébault <[email protected]> * Update modules/configuring/proc-using-the-operator-to-run-rhdh-with-your-custom-configuration.adoc Co-authored-by: Armel Soro <[email protected]> --------- Signed-off-by: Fabrice Flore-Thébault <[email protected]> Co-authored-by: Armel Soro <[email protected]>
1 parent 2342f92 commit 6cb7da2

24 files changed

+501
-902
lines changed

artifacts/attributes.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393

9494
// First mention of OpenShift CLI or `oc` in a module
9595
:openshift-cli: pass:quotes[OpenShift CLI (`oc`)]
96+
:platform-generic: OpenShift
9697

9798
// Links and their title (in alphabetical order)
9899
:about-book-link: {product-docs-link}/html-single/about_red_hat_developer_hub/index

assemblies/assembly-install-rhdh-eks-operator.adoc

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
// To use this module define the attributes: :platform-long: :platform: :platform-id:
3+
[id="assembly-installing-rhdh-on-{platform-id}-by-using-the-operator"]
4+
= Installing {product-short} on {platform-long} by using the Operator
5+
6+
To benefit from over-the-air updates and catalogs provided by Operator-based applications distributed with the Operator Lifecycle Manager (OLM) framework, consider installing {product} by using the {product} Operator distributed in the {company-name} Ecosystem.
7+
8+
On {platform}, the most notable differences over an OpenShift-based installation are:
9+
10+
* The OLM framework and the {company-name} Ecosystem are not built-in.
11+
* The {company-name} Ecosystem pull-secret is not managed globally.
12+
* To expose the application, Ingresses replace OpenShift Routes.
13+
14+
For clarity, the content is broken down in sections highlighting these platform-specific additional steps.
15+
16+
include::modules/installation/proc-installing-the-operator-on-{platform-id}-by-using-olm.adoc[leveloffset=+1]
17+
18+
include::modules/configuring/proc-provisioning-your-custom-configuration.adoc[leveloffset=+1]
19+
20+
include::modules/installation/proc-provisioning-your-pull-secret-to-your-rhdh-instance-namespace.adoc[leveloffset=+1]
21+
22+
include::modules/configuring/proc-using-the-operator-to-run-rhdh-with-your-custom-configuration.adoc[leveloffset=+1]
23+
24+
include::modules/installation/proc-exposing-your-operator-based-rhdh-instance-on-{platform-id}.adoc[leveloffset=+1]
25+

modules/configuring/proc-provisioning-your-custom-configuration.adoc

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@
33
[id="provisioning-your-custom-configuration"]
44
= Provisioning your custom {product} configuration
55

6-
To configure {product}, provision your custom {product} config maps and secrets to {ocp-brand-name} before running {product}.
6+
To configure {product}, provision your custom {product} config maps and secrets to {platform-long} before running {product}.
77

88
[TIP]
99
====
10-
You can skip this step to run {product-short} with the default config map and secret.
10+
On {ocp-brand-name}, you can skip this step to run {product-short} with the default config map and secret.
1111
Your changes on this configuration might get reverted on {product-short} restart.
1212
====
1313

1414
.Prerequisites
15-
* By using the {ocp-docs-link}/html-single/cli_tools/index#cli-about-cli_cli-developer-commands[{openshift-cli}], you have access, with developer permissions, to the {ocp-short} cluster aimed at containing your {product-short} instance.
15+
* By using the {platform-cli-link}, you have access, with developer permissions, to the {platform-generic} cluster aimed at containing your {product-short} instance.
1616

1717
.Procedure
18-
. Author your custom `_<my_product_secrets>_.txt` file to provision your secrets as environment variables values in an {ocp-short} secret, rather than in clear text in your configuration files.
18+
. Author your custom `_<my_product_secrets>_.txt` file to provision your secrets as environment variables values in {a-platform-generic} secret,
19+
rather than in clear text in your configuration files.
1920
It contains one secret per line in `KEY=value` form.
2021
+
2122
* {authentication-book-link}[Enter your authentication secrets].
@@ -25,7 +26,7 @@ This is the main {product-short} configuration file.
2526
You need a custom `{my-app-config-file}` file to avoid the {product-short} installer to revert user edits during upgrades.
2627
When your custom `{my-app-config-file}` file is empty, {product-short} is using default values.
2728

28-
** To prepare a deployment with the {product} Operator on {ocp-short}, you can start with an empty file.
29+
** To prepare a deployment with the {product} Operator on {platform}, you can start with an empty file.
2930

3031
** To prepare a deployment with the {product} Helm chart, or on Kubernetes, enter the {product-short} base URL in the relevant fields in your `{my-app-config-file}` file to ensure proper functionality of {product-short}.
3132
The base URL is what a {product-short} user sees in their browser when accessing {product-short}.
@@ -57,49 +58,31 @@ backend:
5758
*** {authentication-book-link}[{authentication-book-title}].
5859
*** {authorization-book-link}[{authorization-book-title}].
5960
*** {customizing-book-link}[Customization].
60-
*** xref:proc-configuring-an-rhdh-instance-with-tls-in-kubernetes_running-behind-a-proxy[Configure your {ocp-short} integration].
6161

62-
. Provision your custom configuration files to your {ocp-short} cluster.
62+
. Provision your custom configuration files to your {platform} cluster.
6363

64-
.. Create the _<{my-product-namespace}>_ project aimed at containing your {product-short} instance.
64+
.. Create the _<{my-product-namespace}>_ {namespace} aimed at containing your {product-short} instance.
6565
+
6666
[source,terminal,subs="+attributes,+quotes"]
6767
----
6868
$ oc create namespace {my-product-namespace}
6969
----
70-
+
71-
Alternatively, {ocp-docs-link}/html-single/building_applications/index#creating-a-project-using-the-web-console_projects[create the project by using the web console].
7270

7371
.. Provision your `{my-app-config-file}` file to the `{my-app-config-config-map}` config map in the _<{my-product-namespace}>_ project.
7472
+
7573
[source,terminal,subs="+attributes,+quotes"]
7674
----
7775
$ oc create configmap {my-app-config-config-map} --from-file={my-app-config-file} --namespace={my-product-namespace}
7876
----
79-
+
80-
Alternatively, {ocp-docs-link}/html-single/nodes/index#nnodes-pods-configmap-create-from-console_configmaps[create the config map by using the web console].
8177

8278
.. Provision your `_<my_product_secrets>_.txt` file to the `_<my_product_secrets>_` secret in the _<{my-product-namespace}>_ project.
8379
+
8480
[source,terminal,subs="+attributes,+quotes"]
8581
----
8682
$ oc create secret generic `_<my_product_secrets>_` --from-file=`_<my_product_secrets>_.txt` --namespace={my-product-namespace}
8783
----
88-
+
89-
Alternatively,
90-
{ocp-docs-link}/html-single/nodes/index#nodes-pods-secrets-creating-web-console-secrets_nodes-pods-secrets[create the secret by using the web console].
91-
92-
[NOTE]
93-
====
94-
`_<my_product_secrets>_` is your preferred {product-short} secret name, specifying the identifier for your secret configuration within {product-short}.
95-
====
9684

9785
.Next steps
98-
Consider provisioning additional config maps and secrets:
99-
100-
* To use an external PostgreSQL database, xref:configuring-external-postgresql-databases[provision your PostgreSQL database secrets].
101-
102-
86+
* To use an external PostgreSQL database, {configuring-book-link}configuring-external-postgresql-databases[provision your PostgreSQL database secrets].
10387
* To enable dynamic plugins, {installing-and-viewing-plugins-book-link}[provision your dynamic plugins config map].
104-
10588
* To configure authorization by using external files, {authorization-book-link}#managing-authorizations-by-using-external-files[provision your RBAC policies config map].

modules/configuring/proc-using-the-operator-to-run-rhdh-with-your-custom-configuration.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ To use the {product-short} Operator to run {product} with your custom configurat
99
* Injects environment variables provisioned in your custom secrets.
1010

1111
.Prerequisites
12-
* By using the {ocp-docs-link}/html-single/cli_tools/index#cli-about-cli_cli-developer-commands[{openshift-cli}], you have access, with developer permissions, to the {ocp-short} cluster aimed at containing your {product-short} instance.
13-
* {installing-on-ocp-book-link}[Your {ocp-short} administrator has installed the {product} Operator in {ocp-short}].
14-
* xref:provisioning-your-custom-configuration[You have provisioned your custom config maps and secrets in your `_<{my-product-namespace}>_` project].
12+
* By using the {platform-cli-link}, you have access, with developer permissions, to the {platform} cluster aimed at containing your {product-short} instance.
13+
* Your administrator has installed the {product} Operator in the cluster.
14+
* You have provisioned your custom config maps and secrets in your `_<{my-product-namespace}>_` project.
1515

1616
.Procedure
1717
. Author your {product-custom-resource-type} CR in a `{my-product-cr-name}.yaml` file to use your custom config maps and secrets.
@@ -108,7 +108,7 @@ spec:
108108
----
109109

110110
`spec.application.extraEnvs.envs`:::
111-
Optionally, enter your additional environment variables that are not secrets, such as xref:proc-configuring-proxy-in-operator-deployment_running-behind-a-proxy[your proxy environment variables].
111+
Optionally, enter your additional environment variables that are not secrets, such as {configuring-book-link}#proc-configuring-proxy-in-operator-deployment_running-behind-a-proxy[your proxy environment variables].
112112
+
113113
Inject your `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` environment variables:
114114
+
@@ -195,9 +195,9 @@ spec:
195195
----
196196

197197
`spec.deployment`:::
198-
Optionally, xref:configuring-the-deployment[enter your deployment configuration].
199-
+
200-
Apply your {product-custom-resource-type} CR to start or update your {product-short} instance:
198+
Optionally, {configuring-book-link}#configuring-the-deployment[enter your deployment configuration].
199+
200+
. Apply your {product-custom-resource-type} CR to start or update your {product-short} instance:
201201
+
202202
[source,terminal,subs="+attributes,+quotes"]
203203
----

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

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

0 commit comments

Comments
 (0)