For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
Release notes
What’s new, breaking changes, and bug fixes for each kgateway release.
Review the release notes for kgateway. For a detailed list of changes between tags, use the GitHub Compare changes tool.
2.6.0
🔥 Breaking changes
Policy errors on a backendRef fail closed
A policy that is attached to a single backendRef through an ExtensionRef filter now fails closed. Before, if the policy had errors, did not exist, or could not attach to a backendRef, traffic was forwarded to the backend without the policy. Now, the backendRef’s share of traffic receives an HTTP 500 response. The HTTPRoute reports the BackendRefReplaced reason. If no other backend is left in the rule, the rule is replaced with a direct HTTP 500 response and reports the RouteRuleReplaced reason.
The built-in URLRewrite, RequestRedirect, and RequestMirror filters on a backendRef now fail the same way. Before, the three filters were ignored on a backendRef. Before you upgrade, check your HTTPRoutes for the three filters or a DirectResponse on a backendRef.
For more information, see BackendRef policy errors.
Gateway-wide client certificate validation is enforced
A ListenerPolicy that sets clientCertificateValidation without targetRefs.sectionName now applies to all TLS-terminating listeners on the Gateway. Before, the policy reported Accepted but was not enforced. Review your policies before you upgrade, because clients without a valid certificate start to be rejected.
- The Gateway-wide policy replaces the FrontendTLS
defaultandperPortvalidation on those listeners. A policy withsectionNamereplaces the Gateway-wide policy for its listener. - A CA certificate reference without a namespace resolves in the namespace of the ListenerPolicy.
- A CA certificate reference to another namespace needs a ReferenceGrant from
ListenerPolicy. Grants fromGatewayorListenerSetno longer apply. Update your ReferenceGrants before you upgrade.
For more information, see ListenerPolicy certificate validation.
Stricter BackendConfigPolicy TLS verification
Backend certificate verification for BackendConfigPolicy is stricter. Review your policies before you upgrade, because some existing policies stop working.
insecureSkipVerifyaccepts onlytrue. To verify the backend certificate, remove the field and set a trust source, such aswellKnownCACertificates: System. Existing policies withinsecureSkipVerify: falsenow verify the backend certificate against the system CA certificates. If the backend certificate is not signed by a publicly trusted CA, the connection fails.wellKnownCACertificatesaccepts onlySystem. Existing policies with another value reportAccepted=False. The routes that use them are replaced.- With
wellKnownCACertificates: Systemandsniset, the backend certificate must be valid for thesnihostname. Before, only the certificate chain was checked. To check against other names, setverifySubjectAltNames.
For more information, see Backend TLS.
API key secret selectors require every label
apiKeyAuth.secretSelector.matchLabels now matches the way Kubernetes label selectors do. A secret must have every listed label with the listed value. Before, a label with an empty value, such as keys.example.com/gold: "", also matched secrets that did not have that label, so their API keys were accepted. If you select API key secrets by an empty-valued label, add that label to every secret whose keys must stay valid before you upgrade.
For more information, see Label selectors.
🌟 New features
Warn when controller memory tuning lacks a container memory limit
Helm install notes now warn when controller.goMemLimitPercent is nonzero but the controller container has no memory limit in the chart values. Set controller.resources.limits.memory, or provide a LimitRange default, so GOMEMLIMIT has a finite container memory limit to use. For more information, see Tune the controller Go memory limit.
⚒️ Installation changes
Go runtime sets GOMAXPROCS for the controller
The GOMAXPROCS setting controls how many CPUs the controller uses at the same time. Now, the controller’s GOMAXPROCS value follows the CPU limit of the controller container, even when the limit changes while the pod runs. For example, if a Vertical Pod Autoscaler (VPA) raises the CPU limit, the controller starts to use the extra CPU without a restart.
Before, the Helm chart set GOMAXPROCS once when the pod started. If the CPU limit changed later, the controller kept the old value until the pod restarted.
To use a fixed value instead, set GOMAXPROCS in controller.extraEnv. A fixed value turns off the automatic updates.
controller:
extraEnv:
GOMAXPROCS: "4"For more information, see Controller CPU limit and GOMAXPROCS.
🗑️ Deprecated or removed features
Controller reconciliation metrics removed
The control plane no longer reports how long each Gateway and GatewayClass reconciliation takes. These metrics added a separate set of series for every Gateway in the cluster, including Gateways that other controllers own.
- The
kgateway_controller_reconcile_duration_secondsmetric is removed. - The
kgateway_controller_reconciliations_totalmetric no longer has thenameandnamespacelabels. It keeps thecontrollerandresultlabels.
If your dashboards or alerts use the removed metric or filter kgateway_controller_reconciliations_total by name or namespace, update them before you upgrade. The kgateway operations dashboard no longer has the Reconciliation Latency panel.
For more information, see kgateway-dev/kgateway#14836.