mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-02 18:41:43 +02:00
enable readinessProbe either way
This commit is contained in:
@@ -1256,11 +1256,8 @@ func (c *Cluster) generateStatefulSet(spec *acidv1.PostgresSpec) (*appsv1.Statef
|
||||
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
|
||||
if c.patroniKubernetesUseConfigMaps() {
|
||||
spiloContainer.ReadinessProbe = generateSpiloReadinessProbe()
|
||||
}
|
||||
spiloContainer.ReadinessProbe = generateSpiloReadinessProbe()
|
||||
|
||||
// generate container specs for sidecars specified in the cluster manifest
|
||||
clusterSpecificSidecars := []v1.Container{}
|
||||
|
||||
Reference in New Issue
Block a user