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, 2019 in GCP by Sam
• 5,330 points
120 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, 2019 by Sirajul
• 50,310 points
How do I completely disable Kube DNS replication?

Related Questions In GCP

0 votes
1 answer
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, 2019 in GCP by Sirajul
• 50,310 points
108 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, 2019 in GCP by Sirajul
• 50,310 points
167 views
0 votes
1 answer

Mounting a Google cloud storage bucket to a GKE pod as a persistent disk.

Yes, its possible. There's a similar project,follow ...READ MORE

answered Oct 16, 2019 in GCP by Sirajul
• 50,310 points
1,636 views
0 votes
1 answer