From 7fdefe82e9c7d143c0832d3187f826ff4b459297 Mon Sep 17 00:00:00 2001 From: Silvio Ankermann Date: Fri, 21 Jan 2022 15:36:15 +0100 Subject: [PATCH] element-web: change containerPort to 8080 --- charts/element-web/templates/NOTES.txt | 2 +- charts/element-web/templates/configuration-nginx.yaml | 4 ++-- charts/element-web/templates/deployment.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/element-web/templates/NOTES.txt b/charts/element-web/templates/NOTES.txt index 7035746..33ccaf6 100644 --- a/charts/element-web/templates/NOTES.txt +++ b/charts/element-web/templates/NOTES.txt @@ -15,5 +15,5 @@ {{- else if contains "ClusterIP" .Values.service.type }} export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "element-web.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 + kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:8080 {{- end }} diff --git a/charts/element-web/templates/configuration-nginx.yaml b/charts/element-web/templates/configuration-nginx.yaml index 098277b..e6f055d 100644 --- a/charts/element-web/templates/configuration-nginx.yaml +++ b/charts/element-web/templates/configuration-nginx.yaml @@ -8,8 +8,8 @@ metadata: data: default.conf: | server { - listen 80; - listen [::]:80; + listen 8080; + listen [::]:8080; server_name localhost; root /usr/share/nginx/html; diff --git a/charts/element-web/templates/deployment.yaml b/charts/element-web/templates/deployment.yaml index f13ea2b..928d4d4 100644 --- a/charts/element-web/templates/deployment.yaml +++ b/charts/element-web/templates/deployment.yaml @@ -38,7 +38,7 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http - containerPort: 80 + containerPort: 8080 protocol: TCP livenessProbe: httpGet: