From 4eb5a0e67a68c4f7f9bb80fb3ecae81817fc4f2d Mon Sep 17 00:00:00 2001 From: Joe Duhamel Date: Thu, 13 Apr 2017 14:55:25 -0400 Subject: [PATCH 1/2] Update kubedns-autoscaler change target The target was a replicationcontroller but kubedns is currently a deployment --- roles/kubernetes-apps/ansible/templates/kubedns-autoscaler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/ansible/templates/kubedns-autoscaler.yml b/roles/kubernetes-apps/ansible/templates/kubedns-autoscaler.yml index 65dee527f..c0f519e2c 100644 --- a/roles/kubernetes-apps/ansible/templates/kubedns-autoscaler.yml +++ b/roles/kubernetes-apps/ansible/templates/kubedns-autoscaler.yml @@ -42,7 +42,7 @@ spec: - --namespace=kube-system - --configmap=kubedns-autoscaler # Should keep target in sync with cluster/addons/dns/kubedns-controller.yaml.base - - --target=replicationcontroller/kubedns + - --target=Deployment/kubedns - --default-params={"linear":{"nodesPerReplica":{{ kubedns_nodes_per_replica }},"min":{{ kubedns_min_replicas }}}} - --logtostderr=true - --v=2 From f945c8d88576b59d1b813cb028a9c10953668b00 Mon Sep 17 00:00:00 2001 From: Joe Duhamel Date: Thu, 13 Apr 2017 15:07:06 -0400 Subject: [PATCH 2/2] Update dnsmasq-autoscaler changed target to be a deployment rather than a replicationcontroller. --- roles/dnsmasq/templates/dnsmasq-autoscaler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/dnsmasq/templates/dnsmasq-autoscaler.yml b/roles/dnsmasq/templates/dnsmasq-autoscaler.yml index ca65c2dab..4e5e2ddcc 100644 --- a/roles/dnsmasq/templates/dnsmasq-autoscaler.yml +++ b/roles/dnsmasq/templates/dnsmasq-autoscaler.yml @@ -41,7 +41,7 @@ spec: - /cluster-proportional-autoscaler - --namespace=kube-system - --configmap=dnsmasq-autoscaler - - --target=ReplicationController/dnsmasq + - --target=Deployment/dnsmasq # When cluster is using large nodes(with more cores), "coresPerReplica" should dominate. # If using small nodes, "nodesPerReplica" should dominate. - --default-params={"linear":{"nodesPerReplica":{{ dnsmasq_nodes_per_replica }},"preventSinglePointFailure":true}}