File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
rootfs/etc/nginx/template Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1481,8 +1481,8 @@ stream {
1481
1481
proxy_next_upstream_timeout {{ $location.Proxy.NextUpstreamTimeout }};
1482
1482
proxy_next_upstream_tries {{ $location.Proxy.NextUpstreamTries }};
1483
1483
1484
+ {{ if or (eq $location.BackendProtocol "GRPC") (eq $location.BackendProtocol "GRPCS") }}
1484
1485
# Grpc settings
1485
- {{ if or (eq $location.BackendProtocol "GRPC") (eq $location.BackendProtocol "GRPCS")}}
1486
1486
grpc_connect_timeout {{ $location.Proxy.ConnectTimeout }}s;
1487
1487
grpc_send_timeout {{ $location.Proxy.SendTimeout }}s;
1488
1488
grpc_read_timeout {{ $location.Proxy.ReadTimeout }}s;
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ var _ = framework.DescribeAnnotation("backend-protocol - GRPC", func() {
267
267
proxyReadtimeout := "30"
268
268
269
269
annotations := make (map [string ]string )
270
- annotations ["nginx.ingress.kubernetes.io/backend-protocol" ] = "grpc "
270
+ annotations ["nginx.ingress.kubernetes.io/backend-protocol" ] = "GRPC "
271
271
annotations ["nginx.ingress.kubernetes.io/proxy-connect-timeout" ] = proxyConnectTimeout
272
272
annotations ["nginx.ingress.kubernetes.io/proxy-send-timeout" ] = proxySendTimeout
273
273
annotations ["nginx.ingress.kubernetes.io/proxy-read-timeout" ] = proxyReadtimeout
@@ -289,7 +289,7 @@ var _ = framework.DescribeAnnotation("backend-protocol - GRPC", func() {
289
289
proxyReadtimeout := "30"
290
290
291
291
annotations := make (map [string ]string )
292
- annotations ["nginx.ingress.kubernetes.io/backend-protocol" ] = "grpcs "
292
+ annotations ["nginx.ingress.kubernetes.io/backend-protocol" ] = "GRPCS "
293
293
annotations ["nginx.ingress.kubernetes.io/proxy-connect-timeout" ] = proxyConnectTimeout
294
294
annotations ["nginx.ingress.kubernetes.io/proxy-send-timeout" ] = proxySendTimeout
295
295
annotations ["nginx.ingress.kubernetes.io/proxy-read-timeout" ] = proxyReadtimeout
You can’t perform that action at this time.
0 commit comments