zalando / spilo

Highly available elephant herd: HA PostgreSQL cluster using Docker
Apache License 2.0
1.53k stars 382 forks source link

readiness probe failure when using /readiness #892

Closed devulm closed 1 year ago

devulm commented 1 year ago

hi .

We are using image spilo-12:1.6-p3 on openshift 4.11 , via the postgres operator

The readiness does not work when path is set to /readiness . But works when updating it /patroni

let me know if i need to share the operatorconfiguration CRD.


        - containerPort: 8008
          protocol: TCP
        - containerPort: 5432
          protocol: TCP
        - containerPort: 8080
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /readiness
            port: 8008
            scheme: HTTP
          initialDelaySeconds: 6
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 5

Below config works.

   - containerPort: 8008
          protocol: TCP
        - containerPort: 5432
          protocol: TCP
        - containerPort: 8080
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /patroni
            port: 8008
            scheme: HTTP
          initialDelaySeconds: 6
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 5
devulm commented 1 year ago

@hughcapet i see this is closed with status of completed, dont see any other comments, have i missed any links or updates?

hughcapet commented 1 year ago

You have created an issue in the right place which is still open. Don't see any need in this one