Reduce the Kube DNS replicas on GKE.

0 votes
I do not require highly available DNS resolution, And therefore wish to reduce the number of Kube DNS replicas to one. How do I go about achieving this?
Oct 30 in GCP by Sam
• 4,320 points
18 views

1 answer to this question.

0 votes

If your cluster doesn't require highly available DNS resolution, you can conserve cluster resources by turning off Kube DNS horizontal autoscaling and reducing the number of replicas to one.

To turn off the kube-dns autoscaler and reduce kube-dns to a single replica:

kubectl scale --replicas=0 deployment/kube-dns-autoscaler --namespace=kube-system kubectl scale --replicas=1 deployment/kube-dns --namespace=kube-system

To enable autoscaling:

kubectl scale --replicas=1 deployment/kube-dns-autoscaler --namespace=kube-system

For more precise control of autoscaling, you can tune the [autoscaling parameters]

answered Oct 30 by Sirajul
• 38,820 points
How do I completely disable Kube DNS replication?

Related Questions In GCP

0 votes
1 answer

Creating an alpha cluster using GKE on Google Cloud Platform.

The term Alpha cluster means that alpha APIs are ...READ MORE

answered Sep 27 in GCP by Sirajul
• 38,820 points
47 views
0 votes
1 answer

Can I create a load balancer with path based routing in GKE?

Yes, it's possible. Note that you simply will use the internal Load balancing (ILB) for ...READ MORE

answered Oct 10 in GCP by Sirajul
• 38,820 points
33 views
0 votes
1 answer
0 votes
1 answer