Customize Pods

StackGres allow customize a Pods by adding containers or init containers, environment variables, volumes, volume mounts and ports. This feature provides the liberty to extend any StackGres cluster and fit any use case as needed.

You can configure the pods of the cluter in the SGCluster CRD pods section where you can configure the following related sections:

  • customContainers: Custom containers
  • customInitContainers: Custom init containers
  • customVolumes: Custom volumes
  • customVolumeMounts: Custom volume mounts for containers
  • customInitVolumeMounts: Custom volume mounts for init containers
  • customEnv: Custom environment variables for containers
  • customInitEnv: Custom environment variables for init containers
  • customEnvFrom: Custom environment variables from source for containers
  • customInitEnvFrom: Custom environment variables from source for init containers

You can configure the ports of the cluter in the SGCluster CRD primary postgresServices section and the SGCluster CRD replicas postgresServices section.