Skip to content

Scaling kOps

Scaling the control plane

Dedicated API Server nodes

kOps 1.21

A common bottleneck of the control plane is the API server. As the number of pods and nodes grow, you will want to add more resources to handle the load.

You can scale the API server horizontally by adding instance groups dedicated to running API server nodes. You can do so by adding an instance group with the APIServer role:

kind: InstanceGroup
  creationTimestamp: null
  labels: <cluster name>
  name: apiserver-eu-central-1a
  image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20201026
  machineType: t3.small
  maxSize: 3
  minSize: 3
  nodeLabels: apiserver-eu-central-1a
  role: APIServer
  - eu-central-1a

or run kops create ig --name=<cluster name> apiserver-eu-central-1a --subnet=eu-central-1a

Because the labels, taints, and domains can change, this feature is currently behind a feature gate.

export KOPS_FEATURE_FLAGS="+APIServerNodes"