enable readinessProbe either way

This commit is contained in:
Felix Kunde 2022-03-28 12:01:21 +02:00
parent 4b893f9267
commit 2c4e5db334
1 changed files with 1 additions and 4 deletions

View File

@ -1256,11 +1256,8 @@ func (c *Cluster) generateStatefulSet(spec *acidv1.PostgresSpec) (*appsv1.Statef
generateCapabilities(c.OpConfig.AdditionalPodCapabilities), generateCapabilities(c.OpConfig.AdditionalPodCapabilities),
) )
// if kubernetes_use_configmaps define a readinessProbe since the master service has a selector
// Patroni responds 200 to probe only if it either owns the leader lock or postgres is running and DCS is accessible // Patroni responds 200 to probe only if it either owns the leader lock or postgres is running and DCS is accessible
if c.patroniKubernetesUseConfigMaps() { spiloContainer.ReadinessProbe = generateSpiloReadinessProbe()
spiloContainer.ReadinessProbe = generateSpiloReadinessProbe()
}
// generate container specs for sidecars specified in the cluster manifest // generate container specs for sidecars specified in the cluster manifest
clusterSpecificSidecars := []v1.Container{} clusterSpecificSidecars := []v1.Container{}