From 1e8250af93522d9290c7bb116ecbc134862e3c2d Mon Sep 17 00:00:00 2001 From: Simon L Date: Wed, 8 Nov 2023 11:03:50 +0100 Subject: [PATCH 1/3] change externaltrafficpolicy Signed-off-by: Simon L --- .../templates/nextcloud-aio-apache-service.yaml | 1 + .../templates/nextcloud-aio-talk-service.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-apache-service.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-apache-service.yaml index 1ccd4125..a3b64e40 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-apache-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-apache-service.yaml @@ -10,6 +10,7 @@ metadata: namespace: {{ .Values.NAMESPACE }} spec: type: LoadBalancer + externalTrafficPolicy: Local ports: - name: "{{ .Values.APACHE_PORT }}" port: {{ .Values.APACHE_PORT }} diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-talk-service.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-talk-service.yaml index f351c201..66a63499 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-talk-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-talk-service.yaml @@ -12,6 +12,7 @@ metadata: namespace: {{ .Values.NAMESPACE }} spec: type: LoadBalancer + externalTrafficPolicy: Local ports: - name: "{{ .Values.TALK_PORT }}" port: {{ .Values.TALK_PORT }} From fbc98857133dfbdf0688bc11054b86bbd1a3eb04 Mon Sep 17 00:00:00 2001 From: Simon L Date: Wed, 8 Nov 2023 11:14:25 +0100 Subject: [PATCH 2/3] also adjust script Signed-off-by: Simon L --- nextcloud-aio-helm-chart/update-helm.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nextcloud-aio-helm-chart/update-helm.sh b/nextcloud-aio-helm-chart/update-helm.sh index e5a7bd93..0e756390 100755 --- a/nextcloud-aio-helm-chart/update-helm.sh +++ b/nextcloud-aio-helm-chart/update-helm.sh @@ -149,6 +149,8 @@ find ./ -name '*talk*' -exec sed -i "s|$TALK_PORT|{{ .Values.TALK_PORT }}|" \{} find ./ -name '*apache-service.yaml' -exec sed -i "/^spec:/a\ \ type: LoadBalancer" \{} \; # shellcheck disable=SC1083 find ./ -name '*talk-service.yaml' -exec sed -i "/^spec:/a\ \ type: LoadBalancer" \{} \; +# shellcheck disable=SC1083 +find ./ -name '*service.yaml' -exec sed -i "/type: LoadBalancer/a\ \ externalTrafficPolicy: Local" \{} \; echo '---' > /tmp/talk-service.copy # shellcheck disable=SC1083 find ./ -name '*talk-service.yaml' -exec cat \{} \; >> /tmp/talk-service.copy From 17c413039dc6be4ce1e20e9864c8652b05b799b5 Mon Sep 17 00:00:00 2001 From: Simon L Date: Wed, 8 Nov 2023 11:17:24 +0100 Subject: [PATCH 3/3] adjust version number Signed-off-by: Simon L --- nextcloud-aio-helm-chart/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcloud-aio-helm-chart/Chart.yaml b/nextcloud-aio-helm-chart/Chart.yaml index a0fd7f9c..bd8a0da8 100755 --- a/nextcloud-aio-helm-chart/Chart.yaml +++ b/nextcloud-aio-helm-chart/Chart.yaml @@ -1,6 +1,6 @@ name: nextcloud-aio-helm-chart description: A generated Helm Chart for Nextcloud AIO from Skippbox Kompose -version: 7.5.2-dev3 +version: 7.5.2-dev4 apiVersion: v2 keywords: - latest