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
• 6,260 points
594 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
• 59,190 points
How do I completely disable Kube DNS replication?

Related Questions In GCP

+2 votes
1 answer

How to expose the deployment on GKE Cluster?

Hi@akhtar, After deploying the application, you need to ...READ MORE

answered Aug 25, 2020 in GCP by MD
• 95,360 points
539 views
0 votes
1 answer
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
• 59,190 points
644 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
• 59,190 points
7,743 views
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP