Pod Presets on Kubernetes

Pod Presets on Kubernetes

  • Pod preset is used to inject information into pods during runtime.

  • Pod presets are used to inject resources such as secrets, configmaps, volumes, and environment variables.

  • Assume you need to deploy 30 apps, each of which requires a unique set of credentials. In that scenario, you can either modify the 30 specs or build a pod preset object that injects an environment variable or config file into all matching pods.

  • The pod preset will apply changes to all containers in the pod when injecting volume mounts and environment variables.

  • You can use several Podpresets, and they will be applied to all pods that match.

  • If there's a conflict, the pod preset won't be applied.

  • Pod presets can match zero or more pods

  • It is possible to match no pods at this moment, but matching pods will debut later.