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 a3b64e401e2..47c36b71b75 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-apache-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-apache-service.yaml @@ -9,6 +9,7 @@ metadata: name: nextcloud-aio-apache namespace: {{ .Values.NAMESPACE }} spec: + ipFamilyPolicy: PreferDualStack type: LoadBalancer externalTrafficPolicy: Local ports: diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-clamav-service.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-clamav-service.yaml index ade35504817..4683278b652 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-clamav-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-clamav-service.yaml @@ -10,6 +10,7 @@ metadata: name: nextcloud-aio-clamav namespace: {{ .Values.NAMESPACE }} spec: + ipFamilyPolicy: PreferDualStack ports: - name: "3310" port: 3310 diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-collabora-service.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-collabora-service.yaml index a1cf6fd44cf..6307dc4f7f0 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-collabora-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-collabora-service.yaml @@ -10,6 +10,7 @@ metadata: name: nextcloud-aio-collabora namespace: {{ .Values.NAMESPACE }} spec: + ipFamilyPolicy: PreferDualStack ports: - name: "9980" port: 9980 diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-database-service.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-database-service.yaml index adb61d66320..e770011b890 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-database-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-database-service.yaml @@ -9,6 +9,7 @@ metadata: name: nextcloud-aio-database namespace: {{ .Values.NAMESPACE }} spec: + ipFamilyPolicy: PreferDualStack ports: - name: "5432" port: 5432 diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-fulltextsearch-service.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-fulltextsearch-service.yaml index f5ea3428b37..6e66b639e84 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-fulltextsearch-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-fulltextsearch-service.yaml @@ -10,6 +10,7 @@ metadata: name: nextcloud-aio-fulltextsearch namespace: {{ .Values.NAMESPACE }} spec: + ipFamilyPolicy: PreferDualStack ports: - name: "9200" port: 9200 diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-imaginary-service.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-imaginary-service.yaml index ac51f3d7cc5..182d0460c9d 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-imaginary-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-imaginary-service.yaml @@ -10,6 +10,7 @@ metadata: name: nextcloud-aio-imaginary namespace: {{ .Values.NAMESPACE }} spec: + ipFamilyPolicy: PreferDualStack ports: - name: "9000" port: 9000 diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-nextcloud-service.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-nextcloud-service.yaml index fba99885d39..48ca483bcfb 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-nextcloud-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-nextcloud-service.yaml @@ -9,6 +9,7 @@ metadata: name: nextcloud-aio-nextcloud namespace: {{ .Values.NAMESPACE }} spec: + ipFamilyPolicy: PreferDualStack ports: - name: "9000" port: 9000 diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-notify-push-service.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-notify-push-service.yaml index d12943cd71a..fee9d10b49e 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-notify-push-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-notify-push-service.yaml @@ -9,6 +9,7 @@ metadata: name: nextcloud-aio-notify-push namespace: {{ .Values.NAMESPACE }} spec: + ipFamilyPolicy: PreferDualStack ports: - name: "7867" port: 7867 diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-onlyoffice-service.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-onlyoffice-service.yaml index 2e005ddcf59..af10c7cf6aa 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-onlyoffice-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-onlyoffice-service.yaml @@ -10,6 +10,7 @@ metadata: name: nextcloud-aio-onlyoffice namespace: {{ .Values.NAMESPACE }} spec: + ipFamilyPolicy: PreferDualStack ports: - name: "80" port: 80 diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-redis-service.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-redis-service.yaml index f65e7455bcc..508b0c75d10 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-redis-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-redis-service.yaml @@ -9,6 +9,7 @@ metadata: name: nextcloud-aio-redis namespace: {{ .Values.NAMESPACE }} spec: + ipFamilyPolicy: PreferDualStack ports: - name: "6379" port: 6379 diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-talk-recording-service.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-talk-recording-service.yaml index 403e2e5a165..d307c573674 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-talk-recording-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-talk-recording-service.yaml @@ -10,6 +10,7 @@ metadata: name: nextcloud-aio-talk-recording namespace: {{ .Values.NAMESPACE }} spec: + ipFamilyPolicy: PreferDualStack ports: - name: "1234" port: 1234 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 66a63499647..9d87d9ee5f3 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-talk-service.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-talk-service.yaml @@ -11,6 +11,7 @@ metadata: name: nextcloud-aio-talk-public namespace: {{ .Values.NAMESPACE }} spec: + ipFamilyPolicy: PreferDualStack type: LoadBalancer externalTrafficPolicy: Local ports: @@ -35,6 +36,7 @@ metadata: name: nextcloud-aio-talk namespace: {{ .Values.NAMESPACE }} spec: + ipFamilyPolicy: PreferDualStack ports: - name: "8081" port: 8081 diff --git a/nextcloud-aio-helm-chart/update-helm.sh b/nextcloud-aio-helm-chart/update-helm.sh index 954cf7289ae..a5b67a3cda0 100755 --- a/nextcloud-aio-helm-chart/update-helm.sh +++ b/nextcloud-aio-helm-chart/update-helm.sh @@ -168,6 +168,8 @@ find ./ -name '*talk-service.yaml' -exec mv /tmp/talk-service.copy \{} \; # shellcheck disable=SC1083 find ./ -name '*service.yaml' -exec sed -i "/type: LoadBalancer/a\ \ externalTrafficPolicy: Local" \{} \; # shellcheck disable=SC1083 +find ./ -name '*service.yaml' -exec sed -i "/^spec:/a\ \ ipFamilyPolicy: PreferDualStack" \{} \; +# shellcheck disable=SC1083 find ./ -name '*.yaml' -exec sed -i "s|'{{|\"{{|g;s|}}'|}}\"|g" \{} \; # shellcheck disable=SC1083 find ./ -name '*.yaml' -exec sed -i "/type: Recreate/d" \{} \;