Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using kubectl scale to scale control plane nodes #162

Open
marklewin opened this issue Nov 8, 2024 · 1 comment
Open

Using kubectl scale to scale control plane nodes #162

marklewin opened this issue Nov 8, 2024 · 1 comment

Comments

@marklewin
Copy link

I've been able to scale nodes up/down using the kubectl scale command. However, when scaling down the number of CP replicas, I noticed:

  • It throws an error if the operation would result in an odd number of replicas
  • If I scale back to a single replica, it borks the cluster

For comparison, I used kubectl edit to scale up and down the number of worker nodes and also control plane nodes. I was able to go from 3 CP nodes to 1 CP node, seemingly without error. It didn't let me edit the config to have two CP nodes though.

kubectl-scale.txt
kubectl-edit-workers.txt
kubectl-edit-cp.txt

@George-Aeillo
Copy link
Contributor

It is expected that it doesn't let you have two control plane nodes. This would cause a "split brain" issue, where etcd would not be able to determine a leader. When finding this problem, did you use the OCI provider on OCNE 2.0? Were you running a managed or self-managed setup for your cluster?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants