Replica Count recomendation #5117
-
|
Just wrote a kubebuilder based k8s CRD/operator. The deployment manifest generated by kubebuilder sets the replica count to 1 Is it common/typical to increase the replica count in production envs to 2, or 3? Thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @arkady69 Yes — it’s common.
Kubebuilder uses leader election, so only one pod is active; others standby. Leader election is configured in main.go: kubebuilder/testdata/project-v4/cmd/main.go Lines 167 to 169 in f928162 Docs: So, I am closing it as solved |
Beta Was this translation helpful? Give feedback.
Hi @arkady69
Yes — it’s common.
Kubebuilder uses leader election, so only one pod is active; others standby.
Leader election is configured in main.go:
kubebuilder/testdata/project-v4/cmd/main.go
Lines 167 to 169 in f928162
Docs:
So, I am closing it as solved
I hope that answered your question