For autoscaling the Kubernetes cluster created with kubeadm on AWS , I'm going through the cluster autoscaler there I saw master node setup.I created master node and worker node so master node is having one ASG and worker node will have one ASG .So should I deploy CA in master node alone or to worker node also we have to deploy?
Asked
Active
Viewed 131 times
1 Answers
1
Cluster autoscaler is to scale out the workers and not for masters. You just need one auto scaler in your cluster. Hope this answers your query

P Ekambaram
- 15,499
- 7
- 34
- 59
-
Thank you sir !! so for master node I can go with high availability right? – HARINI NATHAN Jun 10 '20 at 07:49
-
Yes, For HA you need to add multiple masters. follow the URL https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/ha-topology/ – P Ekambaram Jun 10 '20 at 07:54
-
thankyou for cluster autoscaler we have to give tag ends with cluster name so canyou tell me how to get cluster name? – HARINI NATHAN Jun 10 '20 at 09:56
-
share your deployment yaml – P Ekambaram Jun 10 '20 at 10:21
-
I didn't create deployment file for cluster autoscaler I gave this command "kubectl apply -f https://raw.githubusercontent.com/kubernetes/autoscaler/master/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml" but getting error .Error from server (Forbidden): error when retrieving current configuration of: Resource: "apps/v1, Resource=deployments", GroupVersionKind: "apps/v1, Kind=Deployment" Name: "cluster-autoscaler", Namespace: "kube-system" – HARINI NATHAN Jun 10 '20 at 10:52
-
if you dont have cluster name then pass empty value. refer the link -- https://github.com/kubernetes/autoscaler/blob/9cc78d56eaa8bd96e82af1746a877dc402ac755c/cluster-autoscaler/FAQ.md – P Ekambaram Jun 10 '20 at 11:21