Why do we need switchover from oldMaster to masterCandidateName in case of single node cluster? #2598
danholesinsky
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team,
plz, I would like to ask - I use zalando postgres operator with one master (without replicas) and I want to move this master from one node to another during k8s api update (triggered by kubectl cordon node). My question is - why do you need switchover in this code https://github.com/zalando/postgres-operator/blob/master/pkg/cluster/pod.go#L283 in case of single node cluster? This will only lead to 5 retries, because there is no old master, see log:
Is there any other way how to trigger switchover for single master pod cluster without waiting for 5 minutes?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions