Advanced settings
You can update several installation settings in your Helm values file. For example, you can update the namespace, set resource limits and requests, or enable extensions such as for AI.
For more information, see the Helm reference docs.
Agentgateway and AI extensions
To enable the Agentgateway and AI extensions, set the following values in your Helm values file.
agentgateway:
enabled: true
gateway:
aiExtension:
enabled: true
Development builds
When using the development build 2.1.0-main, add --set controller.image.pullPolicy=Always
to ensure you get the latest image. For production environments, this setting is not recommended as it might impact performance.
Namespace discovery
You can limit the namespaces that kgateway watches for gateway configuration. For example, you might have a multi-tenant cluster with different namespaces for different tenants. You can limit kgateway to only watch a specific namespace for gateway configuration.
Namespace selectors are a list of matched expressions or labels.
matchExpressions
: Use this field for more complex selectors where you want to specify an operator such asIn
orNotIn
.matchLabels
: Use this field for simple selectors where you want to specify a label key-value pair.
Each entry in the list is disjunctive (OR semantics). This means that a namespace is selected if it matches any selector.
You can also use matched expressions and labels together in the same entry, which is conjunctive (AND semantics).
The following example selects namespaces for discovery that meet either of the following conditions:
- The namespace has the label
environment=prod
and the labelversion=v2
, or - The namespace has the label
version=v3
discoveryNamespaceSelectors:
- matchExpressions:
- key: environment
operator: In
values:
- prod
matchLabels:
version: v2
- matchLabels:
version: v3
Leader election
Leader election is enabled by default to ensure that you can run kgateway in a multi-control plane replica setup for high availability.
You can disable leader election by setting the controller.disableLeaderElection
to true
in your Helm chart.
controller:
disableLeaderElection: true