Skip to content

Commit

Permalink
RHIDP-2264 : add extra app-config configuration for AKS Operator inst…
Browse files Browse the repository at this point in the history
…allation procedure (#217)

* add extra app-config configuration for AKS Operator installation procedure

* Update admin/proc-rhdh-deploy-aks-using-operator.adoc

Co-authored-by: Heena Manwani <[email protected]>

* Update admin/proc-rhdh-deploy-aks-using-operator.adoc

Co-authored-by: Heena Manwani <[email protected]>

* QE review suggestion

* Peer review suggestions incorporated

---------

Co-authored-by: Heena Manwani <[email protected]>
Co-authored-by: Heena Manwani <[email protected]>
  • Loading branch information
3 people authored Jun 5, 2024
1 parent adec432 commit 4e630ab
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions modules/admin/proc-rhdh-deploy-aks-using-operator.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,44 @@ kubectl -n <your_namespace> apply -f rhdh-ingress.yaml
----
--

. Create a ConfigMap named `app-config-rhdh` containing the {product-short} configuration using the following example:
+
--
[source,yaml]
----
apiVersion: v1
kind: ConfigMap
metadata:
name: app-config-rhdh
data:
"app-config-rhdh.yaml": |
app:
title: Red Hat Developer Hub
baseUrl: https://<app_address>
backend:
auth:
keys:
- secret: "${BACKEND_SECRET}"
baseUrl: https://<app_address>
cors:
origin: https://<app_address>
----
--

. Create a Secret named `secrets-rhdh` and add a key named `BACKEND_SECRET` with a `Base64-encoded` string value as shown in the following example:
+
--
[source,yaml]
----
apiVersion: v1
kind: Secret
metadata:
name: secrets-rhdh
stringData:
BACKEND_SECRET: "xxx"
----
--

. Create a Custom Resource (CR) manifest file named `rhdh.yaml` and include the previously created `rhdh-pull-secret` as follows:
+
--
Expand All @@ -98,6 +136,12 @@ spec:
application:
imagePullSecrets:
- rhdh-pull-secret
appConfig:
configMaps:
- name: "app-config-rhdh"
extraEnvs:
secrets:
- name: "secrets-rhdh"
----
--

Expand Down

0 comments on commit 4e630ab

Please sign in to comment.