diff --git a/helm/templates/sessions/guacamole.disruptionbudget.yml b/helm/templates/sessions/guacamole.disruptionbudget.yml new file mode 100644 index 000000000..d09c493aa --- /dev/null +++ b/helm/templates/sessions/guacamole.disruptionbudget.yml @@ -0,0 +1,12 @@ +# SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: policy/v1 +kind: PodDisruptionBudget +metadata: + name: {{ .Release.Name }}-session-nginx +spec: + minAvailable: 1 + selector: + matchLabels: + id: {{ .Release.Name }}-deployment-session-nginx diff --git a/helm/templates/sessions/sessions.configmap.yaml b/helm/templates/sessions/sessions.configmap.yaml index a66203653..1356df5bc 100644 --- a/helm/templates/sessions/sessions.configmap.yaml +++ b/helm/templates/sessions/sessions.configmap.yaml @@ -27,6 +27,7 @@ data: root /usr/share/nginx/html; error_page 502 /502.html; + error_page 401 /401.html; resolver {{ .Values.cluster.dns.service }}.{{ .Values.cluster.dns.namespace }}.svc.cluster.local; @@ -82,3 +83,27 @@ data: + 401.html: |- + + + + + + +

Not authenticated against session - 401 Authorization Required

+ +
+ The error can occur for various reasons: +
+
+ If you think this error shouldn't appear, please contact your system administrator. +
+ + diff --git a/helm/templates/sessions/sessions.deployment.yaml b/helm/templates/sessions/sessions.deployment.yaml index 8442ad044..47262f9a5 100644 --- a/helm/templates/sessions/sessions.deployment.yaml +++ b/helm/templates/sessions/sessions.deployment.yaml @@ -10,7 +10,7 @@ metadata: annotations: checksum/config: {{ include (print $.Template.BasePath "/sessions/sessions.configmap.yaml") . | sha256sum }} spec: - replicas: 1 + replicas: 2 selector: matchLabels: id: {{ .Release.Name }}-deployment-session-nginx @@ -63,6 +63,9 @@ spec: - name: {{ .Release.Name }}-session-nginx mountPath: /usr/share/nginx/html/502.html subPath: 502.html + - name: {{ .Release.Name }}-session-nginx + mountPath: /usr/share/nginx/html/401.html + subPath: 401.html {{ if .Values.cluster.containers }} {{- toYaml .Values.cluster.containers | nindent 10 }} {{ end }}