From 0cdcccc3342f8b0f956712a36294f32133d0ddbb Mon Sep 17 00:00:00 2001 From: Bart Jeukendrup Date: Thu, 18 Jul 2024 15:29:16 +0200 Subject: [PATCH] docs: update instruction --- README.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ae81c39..f6a43bd 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,9 @@ The Signalen backoffice relies on an external OpenID Connect identity provider for authentication of users. If no instance is available, [Dex](https://github.com/dexidp/dex) could be used with a static user as follows: ```bash -helm repo add stable https://kubernetes-charts.storage.googleapis.com/ +helm repo add dex https://charts.dexidp.io helm upgrade --install \ - dex stable/dex \ + dex dex/dex \ --create-namespace \ --namespace dex \ --set "config.issuer=https://dex.signalen.example.com" \ @@ -22,7 +22,9 @@ helm upgrade --install \ --set "config.staticClients[0].redirectURIs[0]=https://signalen.example.com/manage/incidents" \ --set "config.oauth2.responseTypes={token,id_token}" \ --set "ingress.enabled=true" \ - --set "ingress.hosts[0]=dex.signalen.example.com" + --set "ingress.hosts[0].host=dex.signals.example.com" \ + --set "ingress.hosts[0].paths[0].path=/" \ + --set "ingress.hosts[0].paths[0].pathType=ImplementationSpecific" ``` This command will install Dex in the dex namespace and exposes an [Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/) on dex.signalen.example.com. It creates the following static user: @@ -54,7 +56,9 @@ helm upgrade --install \ --set "settings.userIdField=email" \ --set "settings.classificationEndpoint=https://classification.signals.example.com/signals_mltool" \ --set "ingress.enabled=true" \ - --set "ingress.hosts[0]=api.signals.example.com" + --set "ingress.hosts[0].host=api.signals.example.com" \ + --set "ingress.hosts[0].paths[0].path=/" \ + --set "ingress.hosts[0].paths[0].pathType=ImplementationSpecific" ``` And install the frontend chart: @@ -67,7 +71,9 @@ helm upgrade --install \ --set "oidc.authEndpoint=https://dex.signals.example.com/auth" \ --set "config.apiBaseUrl=https://api.signals.example.com/signals" \ --set "ingress.enabled=true" \ - --set "ingress.hosts[0]=signals.example.com" + --set "ingress.hosts[0].host=signals.example.com" \ + --set "ingress.hosts[0].paths[0].path=/" \ + --set "ingress.hosts[0].paths[0].pathType=ImplementationSpecific" ``` And install the classification chart: @@ -79,7 +85,10 @@ helm upgrade --install \ --namespace signalen \ --set "signalsCategoryUrl=https://api.signals.example.com/signals/v1/public/terms" \ --set "ingress.enabled=true" \ - --set "ingress.hosts[0]=classification.signals.example.com" + --set "ingress.hosts[0].host=classification.signals.example.com" \ + --set "ingress.hosts[0].paths[0].path=/" \ + --set "ingress.hosts[0].paths[0].pathType=ImplementationSpecific" + ``` ## Uninstall the charts