Merge pull request #441 from darox/add-external-traffic-policy

helm: add externalTrafficPolicy value
This commit is contained in:
Stefan Prodan
2026-02-01 12:13:50 +02:00
committed by GitHub
3 changed files with 5 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ The following tables lists the configurable parameters of the podinfo chart and
| `service.nodePort` | `31198` | NodePort for the HTTP endpoint |
| `service.trafficDistribution` | `""` | Traffic distribution strategy |
| `service.additionalLabels` | `{}` | Additional labels to add to the service |
| `externalTrafficPolicy` | `Cluster` | External traffic policy for LoadBalancer and NodePort services |
| `h2c.enabled` | `false` | Allow upgrading to h2c (non-TLS version of HTTP/2) |
| `extraArgs` | `[]` | Additional command line arguments to pass to podinfo container |
| `extraEnvs` | `[]` | Extra environment variables for the podinfo container |

View File

@@ -40,4 +40,7 @@ spec:
{{- if .Values.service.trafficDistribution }}
trafficDistribution: {{ .Values.service.trafficDistribution }}
{{- end }}
{{- if ( and (.Values.service.externalTrafficPolicy) (eq .Values.service.type "LoadBalancer") ) }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
{{- end }}

View File

@@ -44,6 +44,7 @@ service:
# Stable from Kubernetes v1.33+ with a value of PreferClose. Additional values are PreferSameZone and PreferSameNode from v1.34+. Empty string means it's disabled.
trafficDistribution: ""
additionalLabels: {}
externalTrafficPolicy: ""
# enable h2c protocol (non-TLS version of HTTP/2)
h2c: