I have very difficult problem regarding deployment, ingress and readiness probe.
I’m creating HA deployment for druid.
When there is more than one replica - one become leader and others forward all http traffic to leader
So what I’ve done
- I’m using traefik as Ingress so I needed to proper handle of ready status
- There is isLeader http endpoint which I use as readiness probe
- There is health http endpoint which I use as liveness probe
To this point everything is OK. I have one ready replica (out of 3)
But how should I configure RollingUpdate strategy to have all replicas updated ?
The prefered way is to create new replicas, kill not ready replicas and at the end kill leader.
From my side I’d like to use liveness probe instead of readiness probe to perform update.
Any ideas ?