From 5231bac56790732f7daefd0c82cfb2266150a3a9 Mon Sep 17 00:00:00 2001 From: AlexFenlon Date: Tue, 5 Mar 2024 15:09:21 +0000 Subject: [PATCH] Update zone size for transportserver resource (#5199) * Update zone size for transportserver resource * Update test for zone size for transportserver resource --- internal/configs/version1/template_test.go | 2 +- internal/configs/version2/nginx-plus.transportserver.tmpl | 2 +- internal/configs/version2/nginx.transportserver.tmpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/configs/version1/template_test.go b/internal/configs/version1/template_test.go index 95b39cb873..222083cba9 100644 --- a/internal/configs/version1/template_test.go +++ b/internal/configs/version1/template_test.go @@ -2436,7 +2436,7 @@ var ( var testUpstream = Upstream{ Name: "test", - UpstreamZoneSize: "256k", + UpstreamZoneSize: "512k", UpstreamServers: []UpstreamServer{ { Address: "127.0.0.1:8181", diff --git a/internal/configs/version2/nginx-plus.transportserver.tmpl b/internal/configs/version2/nginx-plus.transportserver.tmpl index 94c0c9c81f..ac5b3ff8bf 100644 --- a/internal/configs/version2/nginx-plus.transportserver.tmpl +++ b/internal/configs/version2/nginx-plus.transportserver.tmpl @@ -1,7 +1,7 @@ {{- /*gotype: github.com/nginxinc/kubernetes-ingress/internal/configs/version2.TransportServerConfig*/ -}} {{- range $u := .Upstreams }} upstream {{ $u.Name }} { - zone {{ $u.Name }} 256k; + zone {{ $u.Name }} 512k; {{- if $u.LoadBalancingMethod }} {{ $u.LoadBalancingMethod }}; {{- end }} diff --git a/internal/configs/version2/nginx.transportserver.tmpl b/internal/configs/version2/nginx.transportserver.tmpl index 248d0dc7b7..3d6cdb9e75 100644 --- a/internal/configs/version2/nginx.transportserver.tmpl +++ b/internal/configs/version2/nginx.transportserver.tmpl @@ -1,7 +1,7 @@ {{- /*gotype: github.com/nginxinc/kubernetes-ingress/internal/configs/version2.TransportServerConfig*/ -}} {{- range $u := .Upstreams }} upstream {{ $u.Name }} { - zone {{ $u.Name }} 256k; + zone {{ $u.Name }} 512k; {{- if $u.LoadBalancingMethod }} {{ $u.LoadBalancingMethod }}; {{- end }}