Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHIDP-2264 : add extra app-config configuration for AKS Operator installation procedure #217

Merged
merged 5 commits into from
Jun 5, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 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,45 @@ kubectl -n <your_namespace> apply -f rhdh-ingress.yaml
----
--

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

. Create a Secret named `secrets-rhdh` and add a key named `BACKEND_SECRET` with a `Base64-encoded` string as value:
hmanwani-rh marked this conversation as resolved.
Show resolved Hide resolved
+
--
[source,yaml]
----
apiVersion: v1
kind: Secret
metadata:
name: secrets-rhdh
stringData:
# TODO: See https://backstage.io/docs/auth/service-to-service-auth/#setup
hmanwani-rh marked this conversation as resolved.
Show resolved Hide resolved
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 +137,12 @@ spec:
application:
imagePullSecrets:
- rhdh-pull-secret
appConfig:
configMaps:
- name: "app-config-rhdh"
extraEnvs:
secrets:
- name: "secrets-rhdh"
----
--

Expand Down