-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce coredns replicas from 2 to 1 #8552
Conversation
This is an easy way to improve overhead, and users can always scale this back up if they need to.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: priyawadhwa The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
kvm2 Driver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved with nit comment
… import dependencies
kvm2 Driver Times for Minikube (PR 8552): [67.682349452 62.92510660999999 64.340755203] Averages Time Per Log
docker Driver Times for Minikube (PR 8552): [26.444226114 27.913836233 24.902068095999997] Averages Time Per Log
|
pkg/minikube/node/start.go
Outdated
kubectl := kapi.KubectlBinaryPath(cc.KubernetesConfig.KubernetesVersion) | ||
cmd := exec.Command("sudo", "KUBECONFIG=/var/lib/minikube/kubeconfig", kubectl, "scale", "deployment", "--replicas=1", "coredns", "-n=kube-system") | ||
if _, err := runner.RunCmd(cmd); err != nil { | ||
glog.Infof("unable to scale coredns replicas to 1: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be warningf
kvm2 Driver Times for Minikube (PR 8552): [67.268643208 61.53745453399999 63.500490506000006] Averages Time Per Log
docker Driver Times for Minikube (PR 8552): [25.677865813 24.911623059 25.185663239000004] Averages Time Per Log
|
This is an easy way to improve overhead -- we don't need 2 coredns pods running by default. If a user wants more, they can easily scale the deployment up with
kubectl
it won't make a huge difference alone, but in combination with some other PRs I'll be opening it should get us to our goal of 20% reduction
#5682