AgentgatewayParameters
Use AgentgatewayParameters to configure the agentgateway data plane.
Explore the configuration reference by clicking on a property name or expanding the property types. Use the in-field search bar to search for a property. The reference is also available as a table.agentgateway.dev/v1alpha1
Configures dynamic provisioning for the agentgateway data plane.
Labels and annotations that apply to
all resources may be specified at a higher level; see
https://gateway-api.sigs.k8s.io/reference/api-spec/main/spec/#gatewayinfrastructure
Labels and annotations that apply to
all resources may be specified at a higher level; see
https://gateway-api.sigs.k8s.io/reference/api-spec/main/spec/#gatewayinfrastructure
- apiVersionstring
- kindstring
- metadataobject
- *spec
- daemonSet
- metadata
- annotationsobject
- labelsobject
- specobject
- deployment
- metadata
- annotationsobject
- labelsobject
- specobject
- env
- *namestring
- valuestring
- valueFrom
- configMapKeyRef
- *keystring
- namestring
- optionalboolean
- fieldRef
- apiVersionstring
- *fieldPathstring
- fileKeyRef
- *keystring
- optionalboolean
- *pathstring
- *volumeNamestring
- resourceFieldRef
- containerNamestring
- divisor
- *resourcestring
- secretKeyRef
- *keystring
- namestring
- optionalboolean
- horizontalPodAutoscaler
- metadata
- annotationsobject
- labelsobject
- specobject
- image
- digeststring
- pullPolicystring
- registrystring
- repositorystring
- tagstring
- istio
- additionalTrustDomainsstring[]
- caAddressstring
- clusterIdstring
- enabledboolean
- networkstring
- trustDomainstring
- logging
- formatstring
- levelstring
- modelCatalog
- sources
- configMap
- keystring
- *namestring
- podDisruptionBudget
- metadata
- annotationsobject
- labelsobject
- specobject
- rawConfigobject
- resources
- claims
- *namestring
- requeststring
- limitsobject
- requestsobject
- service
- metadata
- annotationsobject
- labelsobject
- specobject
- serviceAccount
- metadata
- annotationsobject
- labelsobject
- specobject
- shutdown
- *maxinteger
- *mininteger
- spiffe
- enabledboolean
- source
- csi
- driverstring
- hostPath
- *pathstring
- mountPathstring
- socketNamestring
- workload
- kindstring
- statusobject
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
No description for this field.
Desired data plane provisioning settings.
Validation
Rule
deployment overlays are only valid when workload.kind is Deployment or unset
Rule
daemonSet overlays are only valid when workload.kind is DaemonSet
Rule
horizontalPodAutoscaler is not valid when workload.kind is DaemonSet
Overrides for the generated
DaemonSet resource.Documentation References (2)
metadata defines a subset of object metadata to be customized.labels and annotations are merged with existing values. If bothGatewayClass and Gateway parameters define the same label orannotation key, the
Gateway value takes precedence (applied second).Annotations is an unstructured key value map stored with a resource that may be
set by external tools to store and retrieve arbitrary metadata. They are not
queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
set by external tools to store and retrieve arbitrary metadata. They are not
queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
Map of string keys and values that can be used to organize and categorize
(scope and select) objects. May match selectors of replication controllers
and services.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
(scope and select) objects. May match selectors of replication controllers
and services.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
spec provides an opaque mechanism to configure the resource spec.This field accepts a complete or partial Kubernetes resource spec, such
as
PodSpec or ServiceSpec, and will be merged with the generatedconfiguration using Strategic Merge Patch semantics.
Application Order
Overlays are applied after all typed configuration fields from both levels.
The full merge order is:
The full merge order is:
1.
2.
3.
4.
GatewayClass typed configuration fields2.
Gateway typed configuration fields3.
GatewayClass overlays4.
Gateway overlays (can override all previous values)Strategic Merge Patch & Deletion Guide
This merge strategy allows you to override individual fields, merge lists, or delete items
without needing to provide the entire resource definition.
without needing to provide the entire resource definition.
1. Replacing Values (Scalars):
Simple fields (strings, integers, booleans) in your config will overwrite the generated defaults.
Simple fields (strings, integers, booleans) in your config will overwrite the generated defaults.
2. Merging Lists (Append/Merge):
Lists with "merge keys", like
will append your items to the generated list, or update existing items if keys match.
Lists with "merge keys", like
containers which merges on name, ortolerations which merges on key,will append your items to the generated list, or update existing items if keys match.
3. Deleting Fields or List Items ($patch: delete):
To remove a field or list item from the generated resource, use the
and is the recommended approach because it works with both client-side
and server-side apply.
To remove a field or list item from the generated resource, use the
$patch: delete directive. This works for both map fields and list items,and is the recommended approach because it works with both client-side
and server-side apply.
spec:
template:
spec:
# Delete pod-level securityContext
securityContext:
$patch: delete
# Delete nodeSelector
nodeSelector:
$patch: delete
containers:
# Be sure to use the correct proxy name here or you will add a
# container instead of modifying a container.
- name: proxy-name
# Delete container-level securityContext
securityContext:
$patch: delete4. Null Values (server-side apply only):
Setting a field to
the API server, so the deletion won't occur. Prefer
for consistent behavior across both apply modes.
Setting a field to
null can also remove it, but this ONLY works withkubectl apply --server-side or equivalent. With regular client-sidekubectl apply, null values are stripped by kubectl before reachingthe API server, so the deletion won't occur. Prefer
$patch: deletefor consistent behavior across both apply modes.
spec:
template:
spec:
nodeSelector: null # Removes nodeSelector (server-side apply only!)5. Replacing Maps Entirely ($patch: replace):
To replace an entire map with your values (instead of merging), use
This removes all existing keys and replaces them with only your specified keys.
To replace an entire map with your values (instead of merging), use
$patch: replace.This removes all existing keys and replaces them with only your specified keys.
spec:
template:
spec:
nodeSelector:
$patch: replace
custom-key: custom-value6. Replacing Lists Entirely ($patch: replace):
If you want to strictly define a list and ignore all generated defaults, use
If you want to strictly define a list and ignore all generated defaults, use
$patch: replace.service:
spec:
ports:
- $patch: replace
- name: http
port: 80
targetPort: 8080
protocol: TCP
- name: https
port: 443
targetPort: 8443
protocol: TCPValidation
Preserve unknown fieldstrue
Documentation References (2)
Overrides for the generated
Deployment resource.Documentation References (3)
metadata defines a subset of object metadata to be customized.labels and annotations are merged with existing values. If bothGatewayClass and Gateway parameters define the same label orannotation key, the
Gateway value takes precedence (applied second).Documentation References (1)
Annotations is an unstructured key value map stored with a resource that may be
set by external tools to store and retrieve arbitrary metadata. They are not
queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
set by external tools to store and retrieve arbitrary metadata. They are not
queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
Documentation References (1)
Map of string keys and values that can be used to organize and categorize
(scope and select) objects. May match selectors of replication controllers
and services.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
(scope and select) objects. May match selectors of replication controllers
and services.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
Documentation References (1)
spec provides an opaque mechanism to configure the resource spec.This field accepts a complete or partial Kubernetes resource spec, such
as
PodSpec or ServiceSpec, and will be merged with the generatedconfiguration using Strategic Merge Patch semantics.
Application Order
Overlays are applied after all typed configuration fields from both levels.
The full merge order is:
The full merge order is:
1.
2.
3.
4.
GatewayClass typed configuration fields2.
Gateway typed configuration fields3.
GatewayClass overlays4.
Gateway overlays (can override all previous values)Strategic Merge Patch & Deletion Guide
This merge strategy allows you to override individual fields, merge lists, or delete items
without needing to provide the entire resource definition.
without needing to provide the entire resource definition.
1. Replacing Values (Scalars):
Simple fields (strings, integers, booleans) in your config will overwrite the generated defaults.
Simple fields (strings, integers, booleans) in your config will overwrite the generated defaults.
2. Merging Lists (Append/Merge):
Lists with "merge keys", like
will append your items to the generated list, or update existing items if keys match.
Lists with "merge keys", like
containers which merges on name, ortolerations which merges on key,will append your items to the generated list, or update existing items if keys match.
3. Deleting Fields or List Items ($patch: delete):
To remove a field or list item from the generated resource, use the
and is the recommended approach because it works with both client-side
and server-side apply.
To remove a field or list item from the generated resource, use the
$patch: delete directive. This works for both map fields and list items,and is the recommended approach because it works with both client-side
and server-side apply.
spec:
template:
spec:
# Delete pod-level securityContext
securityContext:
$patch: delete
# Delete nodeSelector
nodeSelector:
$patch: delete
containers:
# Be sure to use the correct proxy name here or you will add a
# container instead of modifying a container.
- name: proxy-name
# Delete container-level securityContext
securityContext:
$patch: delete4. Null Values (server-side apply only):
Setting a field to
the API server, so the deletion won't occur. Prefer
for consistent behavior across both apply modes.
Setting a field to
null can also remove it, but this ONLY works withkubectl apply --server-side or equivalent. With regular client-sidekubectl apply, null values are stripped by kubectl before reachingthe API server, so the deletion won't occur. Prefer
$patch: deletefor consistent behavior across both apply modes.
spec:
template:
spec:
nodeSelector: null # Removes nodeSelector (server-side apply only!)5. Replacing Maps Entirely ($patch: replace):
To replace an entire map with your values (instead of merging), use
This removes all existing keys and replaces them with only your specified keys.
To replace an entire map with your values (instead of merging), use
$patch: replace.This removes all existing keys and replaces them with only your specified keys.
spec:
template:
spec:
nodeSelector:
$patch: replace
custom-key: custom-value6. Replacing Lists Entirely ($patch: replace):
If you want to strictly define a list and ignore all generated defaults, use
If you want to strictly define a list and ignore all generated defaults, use
$patch: replace.service:
spec:
ports:
- $patch: replace
- name: http
port: 80
targetPort: 8080
protocol: TCP
- name: https
port: 443
targetPort: 8443
protocol: TCPValidation
Preserve unknown fieldstrue
Documentation References (3)
Container environment variables. These override any existing
values. If you want to delete an environment variable entirely, use
[variable
expansion](https://kubernetes.io/docs/tasks/inject-data-application/define-interdependent-environment-variables/)
does apply, but is highly discouraged -- to set dependent environment
variables, you can use
values. If you want to delete an environment variable entirely, use
$patch: delete with an overlay instead. Note that[variable
expansion](https://kubernetes.io/docs/tasks/inject-data-application/define-interdependent-environment-variables/)
does apply, but is highly discouraged -- to set dependent environment
variables, you can use
$(VAR_NAME), but it's highly discouraged.$$(VAR_NAME) avoids expansion and results in a literal$(VAR_NAME).If
controller-managed per-
SESSION_KEY is specified, it takes precedence over thecontroller-managed per-
Gateway session key Secret.Name of the environment variable.
May consist of any printable ASCII characters except '='.
May consist of any printable ASCII characters except '='.
Variable references $(VAR_NAME) are expanded
using the previously defined environment variables in the container and
any service environment variables. If a variable cannot be resolved,
the reference in the input string will be unchanged. Double $$ are reduced
to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
"$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
Escaped references will never be expanded, regardless of whether the variable
exists or not.
Defaults to "".
using the previously defined environment variables in the container and
any service environment variables. If a variable cannot be resolved,
the reference in the input string will be unchanged. Double $$ are reduced
to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
"$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
Escaped references will never be expanded, regardless of whether the variable
exists or not.
Defaults to "".
Source for the environment variable's value. Cannot be used if value is not empty.
Selects a key of a ConfigMap.
Validation
Map typeatomic
The key to select from the ConfigMap's Data field.
Keys in the BinaryData field are not currently propagated to container env vars.
Keys in the BinaryData field are not currently propagated to container env vars.
Name of the referent
Specify whether the ConfigMap or its key must be defined
Selects a field of the pod: supports metadata.name, metadata.namespace,
spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
metadata.labels['<KEY>'], metadata.annotations['<KEY>'],spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
Validation
Map typeatomic
Version of the schema the FieldPath is written in terms of, defaults to "v1".
Path of the field to select in the specified API version.
FileKeyRef selects a key of the env file.
Requires the EnvFiles feature gate to be enabled.
Requires the EnvFiles feature gate to be enabled.
Validation
Map typeatomic
The key within the env file. An invalid key will prevent the pod from starting.
The keys defined within a source may consist of any printable ASCII characters except '='.
During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.
The keys defined within a source may consist of any printable ASCII characters except '='.
During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.
Specify whether the file or its key must be defined. If the file or key
does not exist, then the env var is not published.
If optional is set to true and the specified key does not exist,
the environment variable will not be set in the Pod's containers.
does not exist, then the env var is not published.
If optional is set to true and the specified key does not exist,
the environment variable will not be set in the Pod's containers.
If optional is set to false and the specified key does not exist,
an error will be returned during Pod creation.
an error will be returned during Pod creation.
Validation
Defaultfalse
The path within the volume from which to select the file.
Must be relative and may not contain the '..' path or start with '..'.
Must be relative and may not contain the '..' path or start with '..'.
The name of the volume mount containing the env file.
Selects a resource of the container: only resources limits and requests
(limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
(limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
Validation
Map typeatomic
Container name: required for volumes, optional for env vars
Specifies the output format of the exposed resources, defaults to "1"
Validation
Pattern^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
Int or stringtrue
Required: resource to select
Selects a key of a secret in the pod's namespace
Validation
Map typeatomic
The key of the secret to select from. Must be a valid secret key.
Specify whether the Secret or its key must be defined
Creates a
for Deployment-backed agentgateway proxies. If absent, no HPA is created.
If present, an HPA is created with its
configured to target the generated
fields from this overlay are applied to the generated HPA.
HorizontalPodAutoscalerfor Deployment-backed agentgateway proxies. If absent, no HPA is created.
If present, an HPA is created with its
scaleTargetRef automaticallyconfigured to target the generated
Deployment. The metadata and specfields from this overlay are applied to the generated HPA.
Documentation References (1)
spec provides an opaque mechanism to configure the resource spec.This field accepts a complete or partial Kubernetes resource spec, such
as
PodSpec or ServiceSpec, and will be merged with the generatedconfiguration using Strategic Merge Patch semantics.
Application Order
Overlays are applied after all typed configuration fields from both levels.
The full merge order is:
The full merge order is:
1.
2.
3.
4.
GatewayClass typed configuration fields2.
Gateway typed configuration fields3.
GatewayClass overlays4.
Gateway overlays (can override all previous values)Strategic Merge Patch & Deletion Guide
This merge strategy allows you to override individual fields, merge lists, or delete items
without needing to provide the entire resource definition.
without needing to provide the entire resource definition.
1. Replacing Values (Scalars):
Simple fields (strings, integers, booleans) in your config will overwrite the generated defaults.
Simple fields (strings, integers, booleans) in your config will overwrite the generated defaults.
2. Merging Lists (Append/Merge):
Lists with "merge keys", like
will append your items to the generated list, or update existing items if keys match.
Lists with "merge keys", like
containers which merges on name, ortolerations which merges on key,will append your items to the generated list, or update existing items if keys match.
3. Deleting Fields or List Items ($patch: delete):
To remove a field or list item from the generated resource, use the
and is the recommended approach because it works with both client-side
and server-side apply.
To remove a field or list item from the generated resource, use the
$patch: delete directive. This works for both map fields and list items,and is the recommended approach because it works with both client-side
and server-side apply.
spec:
template:
spec:
# Delete pod-level securityContext
securityContext:
$patch: delete
# Delete nodeSelector
nodeSelector:
$patch: delete
containers:
# Be sure to use the correct proxy name here or you will add a
# container instead of modifying a container.
- name: proxy-name
# Delete container-level securityContext
securityContext:
$patch: delete4. Null Values (server-side apply only):
Setting a field to
the API server, so the deletion won't occur. Prefer
for consistent behavior across both apply modes.
Setting a field to
null can also remove it, but this ONLY works withkubectl apply --server-side or equivalent. With regular client-sidekubectl apply, null values are stripped by kubectl before reachingthe API server, so the deletion won't occur. Prefer
$patch: deletefor consistent behavior across both apply modes.
spec:
template:
spec:
nodeSelector: null # Removes nodeSelector (server-side apply only!)5. Replacing Maps Entirely ($patch: replace):
To replace an entire map with your values (instead of merging), use
This removes all existing keys and replaces them with only your specified keys.
To replace an entire map with your values (instead of merging), use
$patch: replace.This removes all existing keys and replaces them with only your specified keys.
spec:
template:
spec:
nodeSelector:
$patch: replace
custom-key: custom-value6. Replacing Lists Entirely ($patch: replace):
If you want to strictly define a list and ignore all generated defaults, use
If you want to strictly define a list and ignore all generated defaults, use
$patch: replace.service:
spec:
ports:
- $patch: replace
- name: http
port: 80
targetPort: 8080
protocol: TCP
- name: https
port: 443
targetPort: 8443
protocol: TCPValidation
Preserve unknown fieldstrue
Documentation References (1)
The agentgateway container image. See
https://kubernetes.io/docs/concepts/containers/images
for details.
https://kubernetes.io/docs/concepts/containers/images
for details.
Default values, which may be overridden individually:
registry: cr.agentgateway.dev
repository: agentgateway
tag: <agentgateway version>
pullPolicy: <omitted, relying on Kubernetes defaults which depend on the tag>Documentation References (1)
Image digest, such as
sha256:12345....Image pull policy for the container. See
https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
for details.
https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
for details.
Documentation References (1)
Image registry.
Documentation References (1)
Image repository.
Documentation References (1)
Image tag.
Documentation References (1)
Istio integration settings. If enabled, agentgateway can natively connect to Istio-enabled pods with mTLS.
Additional SPIFFE trust domains accepted on inbound HBONE connections.
The local trust domain is always implicitly included.
The local trust domain is always implicitly included.
Address of the Istio CA. If unset, defaults to
https://istiod.istio-system.svc:15012.ID of the cluster this gateway runs in. If unset, defaults to
Kubernetes.Explicitly turns Istio integration on or off for this gateway.
Istio network this gateway runs in. If unset, defaults to the empty network.
Istio trust domain. If not set, defaults to
trust domain for the control plane's istio revision.
cluster.local, or the defaulttrust domain for the control plane's istio revision.
Logging configuration. By default, all logs are set to
info level.Documentation References (2)
Logging output format.
Validation
Enumjson, text
Documentation References (2)
Logging level in standard
default), or a comma-separated per-module setting such as
RUST_LOG syntax, for example info (thedefault), or a comma-separated per-module setting such as
rmcp=warn,hickory_server::server::server_future=off,typespec_client_core::http::policies::logging=warn.Model cost catalog sources. Only effective when set on a Gateway-level
AgentgatewayParameters (via Gateway.spec.infrastructure.parametersRef);
ignored on GatewayClass-level parameters because ConfigMap references
are resolved from the Gateway's deployment namespace.
AgentgatewayParameters (via Gateway.spec.infrastructure.parametersRef);
ignored on GatewayClass-level parameters because ConfigMap references
are resolved from the Gateway's deployment namespace.
Documentation References (2)
Model cost catalog sources. Only effective when set on a Gateway-level
AgentgatewayParameters (via Gateway.spec.infrastructure.parametersRef);
ignored on GatewayClass-level parameters because ConfigMap references
are resolved from the Gateway's deployment namespace.
AgentgatewayParameters (via Gateway.spec.infrastructure.parametersRef);
ignored on GatewayClass-level parameters because ConfigMap references
are resolved from the Gateway's deployment namespace.
Documentation References (2)
ModelCatalogConfigMapRef identifies a ConfigMap holding model cost catalog JSON.
The ConfigMap must be in the same namespace as the Gateway that references it.
The ConfigMap must be in the same namespace as the Gateway that references it.
Documentation References (2)
Data key whose value is the catalog JSON. Defaults to "catalog.json".
Documentation References (2)
No description for this field.
Validation
Min length1
Documentation References (2)
Creates a
agentgateway proxy. If absent, no PDB is created. If present, a PDB is
created with its selector automatically configured to target the selected
generated workload. The
applied to the generated PDB.
PodDisruptionBudget for theagentgateway proxy. If absent, no PDB is created. If present, a PDB is
created with its selector automatically configured to target the selected
generated workload. The
metadata and spec fields from this overlay areapplied to the generated PDB.
Documentation References (1)
Raw agentgateway configuration to merge into the generated config file.
This is merged with
configuration derived from typed fields like
typed fields will take precedence.
This is merged with
configuration derived from typed fields like
logging.format, and thosetyped fields will take precedence.
Example:
rawConfig:
binds:
- port: 3000
listeners:
- routes:
- policies:
cors:
allowOrigins:
- "*"
allowHeaders:
- mcp-protocol-version
- content-type
- cache-control
backends:
- mcp:
targets:
- name: everything
stdio:
cmd: npx
args: ["@modelcontextprotocol/server-everything"]Validation
Preserve unknown fieldstrue
Compute resources required by this container. See
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
for details.
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
for details.
Documentation References (1)
Claims lists the names of resources, defined in spec.resourceClaims,
that are used by this container.
that are used by this container.
This field depends on the
DynamicResourceAllocation feature gate.
DynamicResourceAllocation feature gate.
This field is immutable. It can only be set for containers.
Validation
List typemap
List map keysname
Name must match the name of one entry in pod.spec.resourceClaims of
the Pod where this field is used. It makes that resource available
inside a container.
the Pod where this field is used. It makes that resource available
inside a container.
Request is the name chosen for a request in the referenced claim.
If empty, everything from the claim is made available, otherwise
only the result of this request.
If empty, everything from the claim is made available, otherwise
only the result of this request.
Limits describes the maximum amount of compute resources allowed.
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Documentation References (1)
Requests describes the minimum amount of compute resources required.
If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
otherwise to an implementation-defined value. Requests cannot exceed Limits.
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
otherwise to an implementation-defined value. Requests cannot exceed Limits.
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Documentation References (1)
Overrides for the generated
resource.
Serviceresource.
Documentation References (1)
Overrides for the generated
ServiceAccount resource.Documentation References (2)
metadata defines a subset of object metadata to be customized.labels and annotations are merged with existing values. If bothGatewayClass and Gateway parameters define the same label orannotation key, the
Gateway value takes precedence (applied second).Documentation References (2)
Annotations is an unstructured key value map stored with a resource that may be
set by external tools to store and retrieve arbitrary metadata. They are not
queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
set by external tools to store and retrieve arbitrary metadata. They are not
queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
Documentation References (2)
spec provides an opaque mechanism to configure the resource spec.This field accepts a complete or partial Kubernetes resource spec, such
as
PodSpec or ServiceSpec, and will be merged with the generatedconfiguration using Strategic Merge Patch semantics.
Application Order
Overlays are applied after all typed configuration fields from both levels.
The full merge order is:
The full merge order is:
1.
2.
3.
4.
GatewayClass typed configuration fields2.
Gateway typed configuration fields3.
GatewayClass overlays4.
Gateway overlays (can override all previous values)Strategic Merge Patch & Deletion Guide
This merge strategy allows you to override individual fields, merge lists, or delete items
without needing to provide the entire resource definition.
without needing to provide the entire resource definition.
1. Replacing Values (Scalars):
Simple fields (strings, integers, booleans) in your config will overwrite the generated defaults.
Simple fields (strings, integers, booleans) in your config will overwrite the generated defaults.
2. Merging Lists (Append/Merge):
Lists with "merge keys", like
will append your items to the generated list, or update existing items if keys match.
Lists with "merge keys", like
containers which merges on name, ortolerations which merges on key,will append your items to the generated list, or update existing items if keys match.
3. Deleting Fields or List Items ($patch: delete):
To remove a field or list item from the generated resource, use the
and is the recommended approach because it works with both client-side
and server-side apply.
To remove a field or list item from the generated resource, use the
$patch: delete directive. This works for both map fields and list items,and is the recommended approach because it works with both client-side
and server-side apply.
spec:
template:
spec:
# Delete pod-level securityContext
securityContext:
$patch: delete
# Delete nodeSelector
nodeSelector:
$patch: delete
containers:
# Be sure to use the correct proxy name here or you will add a
# container instead of modifying a container.
- name: proxy-name
# Delete container-level securityContext
securityContext:
$patch: delete4. Null Values (server-side apply only):
Setting a field to
the API server, so the deletion won't occur. Prefer
for consistent behavior across both apply modes.
Setting a field to
null can also remove it, but this ONLY works withkubectl apply --server-side or equivalent. With regular client-sidekubectl apply, null values are stripped by kubectl before reachingthe API server, so the deletion won't occur. Prefer
$patch: deletefor consistent behavior across both apply modes.
spec:
template:
spec:
nodeSelector: null # Removes nodeSelector (server-side apply only!)5. Replacing Maps Entirely ($patch: replace):
To replace an entire map with your values (instead of merging), use
This removes all existing keys and replaces them with only your specified keys.
To replace an entire map with your values (instead of merging), use
$patch: replace.This removes all existing keys and replaces them with only your specified keys.
spec:
template:
spec:
nodeSelector:
$patch: replace
custom-key: custom-value6. Replacing Lists Entirely ($patch: replace):
If you want to strictly define a list and ignore all generated defaults, use
If you want to strictly define a list and ignore all generated defaults, use
$patch: replace.service:
spec:
ports:
- $patch: replace
- name: http
port: 80
targetPort: 8080
protocol: TCP
- name: https
port: 443
targetPort: 8443
protocol: TCPValidation
Preserve unknown fieldstrue
Shutdown delay configuration. How graceful planned or unplanned data
plane changes happen is in tension with how quickly rollouts of the data
plane complete. How long a data plane pod must wait for shutdown to be
perfectly graceful depends on how you have configured your
resources.
plane changes happen is in tension with how quickly rollouts of the data
plane complete. How long a data plane pod must wait for shutdown to be
perfectly graceful depends on how you have configured your
Gatewayresources.
Validation
Rule
The 'min' value must be less than or equal to the 'max' value.
Documentation References (1)
Maximum time (in seconds) to wait before allowing Agentgateway to
terminate. Refer to the
environment variable for details.
terminate. Refer to the
TERMINATION_GRACE_PERIOD_SECONDSenvironment variable for details.
Validation
Formatint64
Minimum0
Maximum31536000
Documentation References (1)
Minimum time (in seconds) to wait before allowing Agentgateway to
terminate. Refer to the
environment variable for details.
terminate. Refer to the
CONNECTION_MIN_TERMINATION_DEADLINEenvironment variable for details.
Validation
Formatint64
Minimum0
Maximum31536000
Documentation References (1)
SPIFFE integration settings. When set, the gateway sources its TLS identity (X.509-SVID)
and trust bundle from the local SPIFFE Workload API, and the controller
mounts the Workload API socket into the pod. Listeners and backends opt in to SPIFFE individually
(via the
AgentgatewayPolicy
and trust bundle from the local SPIFFE Workload API, and the controller
mounts the Workload API socket into the pod. Listeners and backends opt in to SPIFFE individually
(via the
agentgateway.dev/tls-certificate-source: SPIFFE listener option and theAgentgatewayPolicy
backend.tls.certificateSource: SPIFFE field respectively).Explicitly turns SPIFFE integration on or off for this gateway. When unset, the presence
of the spiffe block opts in. Set to false on a Gateway-level AgentgatewayParameters to opt
a gateway out of SPIFFE enabled at the GatewayClass level.
of the spiffe block opts in. Set to false on a Gateway-level AgentgatewayParameters to opt
a gateway out of SPIFFE enabled at the GatewayClass level.
Volume source for the SPIFFE Workload API socket. When omitted (i.e.
the socket is sourced from the SPIFFE CSI driver with default settings.
spiffe: {}),the socket is sourced from the SPIFFE CSI driver with default settings.
Validation
Rule
at most one of the fields in [csi hostPath] may be set
Source the Workload API socket from the SPIFFE CSI driver (the default).
CSI driver name. Defaults to
csi.spiffe.io.Source the Workload API socket from a host directory.
Host directory containing the SPIFFE Workload API socket, e.g.
/run/spire/agent-sockets.Validation
Min length1
Mount path inside the container for the Workload API socket directory.
Must be an absolute path. Defaults to
Must be an absolute path. Defaults to
/spiffe-workload-api.Validation
Pattern^/
Socket filename within the mount directory. Defaults to
spire-agent.sock.workload selects the Kubernetes workload kind for the managed Gatewaydata plane. If unset, Deployment is used.
Documentation References (2)
Kind selects the Kubernetes workload kind. When unset, Deployment is used.
Validation
EnumDaemonSet, Deployment
Documentation References (2)
Current status for these provisioning settings.
Was this page helpful?