Skip to content

Auto scale coredns pods#514

Merged
gboutry merged 1 commit into
canonical:mainfrom
hemanthnakkina:coredns-ha-scale
Jun 12, 2025
Merged

Auto scale coredns pods#514
gboutry merged 1 commit into
canonical:mainfrom
hemanthnakkina:coredns-ha-scale

Conversation

@hemanthnakkina

@hemanthnakkina hemanthnakkina commented Jun 11, 2025

Copy link
Copy Markdown
Collaborator

Currently k8s canonical only deploys 1 coredns and not scaled. Bug raised on canonical k8s [1].

Add a workaround in sunbeam until [1] is fixed.
Logic is to use hpa to scale between 1 to 5 pods based on 80% cpu utilization.
Also increase the resource limits and requests for coredns pod.
Increase cpu requests/limits to 500m, memory requests/limits to 128Mi

[1] canonical/k8s-operator#504

Related-Bug: https://bugs.launchpad.net/snap-openstack/+bug/2112396

Currently k8s canonical only deploys 1 coredns and
not scaled. Bug raised on canonical k8s [1].

Add a workaround in sunbeam until [1] is fixed.
Logic is to use hpa to scale between 1 to 5 pods based
on 80% cpu utilization. Also increase the resource
limits and requests for coredns pod.
Increase cpu requests/limits to 500m, memory
requests/limits to 128Mi

[1] canonical/k8s-operator#504

Related-Bug: https://bugs.launchpad.net/snap-openstack/+bug/2112396
@hemanthnakkina hemanthnakkina changed the title Scale coredns pods based on number of control nodes Auto scale coredns pods Jun 12, 2025
@hemanthnakkina
hemanthnakkina marked this pull request as ready for review June 12, 2025 02:21
@gboutry
gboutry merged commit 7811184 into canonical:main Jun 12, 2025
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants