PodTemplateSpec

Uses: Kong Gateway Operator
Related Documentation

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 the spec.controlPlaneOptions.deployment.podTemplateSpec field.
  • DataPlane pods take their configuration from the spec.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.

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!