aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/portal-ng/components/portal-ng-ui/templates/configmap-nginx-config.yaml
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-05-14 15:03:54 +0200
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-05-14 15:43:25 +0200
commitfbc5b2aad3d1d1e524c1a8d3ad5bef7a07e31032 (patch)
tree3d90fa5c2d7962eaa91bc392b5598a52be5c6adb /kubernetes/portal-ng/components/portal-ng-ui/templates/configmap-nginx-config.yaml
parent65656b526ecb6bcb8f6113ecaee2194d3235ac6c (diff)
[PORTALNG] Support readonly file system in portal-ng-ui
- mount files via configmaps to support readonly filesystems Issue-ID: PORTALNG-101 Change-Id: Ia399d0230db4cc25f2d8e438a0e64a34f06b921f Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'kubernetes/portal-ng/components/portal-ng-ui/templates/configmap-nginx-config.yaml')
-rw-r--r--kubernetes/portal-ng/components/portal-ng-ui/templates/configmap-nginx-config.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/kubernetes/portal-ng/components/portal-ng-ui/templates/configmap-nginx-config.yaml b/kubernetes/portal-ng/components/portal-ng-ui/templates/configmap-nginx-config.yaml
new file mode 100644
index 0000000000..f8e560b908
--- /dev/null
+++ b/kubernetes/portal-ng/components/portal-ng-ui/templates/configmap-nginx-config.yaml
@@ -0,0 +1,26 @@
+{{/*
+# Copyright © 2024 Deutsche Telekom
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+*/}}
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: {{ include "common.fullname" . }}-nginx-config
+ labels:
+ app: {{ include "common.name" . }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+ release: {{ include "common.release" . }}
+ heritage: {{ .Release.Service }}
+data:
+{{ tpl (.Files.Glob "resources/default.conf").AsConfig . | nindent 2 }}