You are browsing documentation for an older version. See the latest documentation here.
Using PodTemplateSpec
The Kubernetes PodTemplateSpec
defines how pods should run. You can customize everything you need to in your deployment using this resource.
For more information see the PodTemplateSpec documentation.
A PodTemplateSpec
can be provided on both GatewayConfiguration
and DataPlane
resources.
GatewayConfiguration
When using the GatewayConfiguration
resource, the ControlPlane
and DataPlane
resources are configured independently.
-
ControlPlane
pods take their configuration from thespec.controlPlaneOptions.deployment.podTemplateSpec
field. -
DataPlane
pods take their configuration from thespec.dataPlaneOptions.deployment.podTemplateSpec
field.
DataPlane
When using the DataPlane
resource directly, you specify spec.deployment.podTemplateSpec
.
Common Usage
Here are some examples for the most common use of PodTemplateSpec
:
In addition, you can also customize:
- Volume mounts
- Node affinity / anti-affinity
- Service account used to run the Pod
If you need additional information about customizing your deployment, raise an issue in Kong/gateway-operator-docs/.