<p>Stumped on this issue and hoping someone who knows more can help me.</p>

<p>Trying to follow a guide with a proof of concept for cluster autoscaling on AWS for Kubernetes (<a href="https://renzedevries.wordpress.com/2017/01/10/autoscaling-your-kubernetes-cluster-on-aws/" rel="nofollow noreferrer">https://renzedevries.wordpress.com/2017/01/10/autoscaling-your-kubernetes-cluster-on-aws/</a>). I built my cluster on AWS using kops following this guide (<a href="https://medium.com/containermind/how-to-create-a-kubernetes-cluster-on-aws-in-few-minutes-89dda10354f4" rel="nofollow noreferrer">https://medium.com/containermind/how-to-create-a-kubernetes-cluster-on-aws-in-few-minutes-89dda10354f4</a>).</p>

<p>The issue appears to be with the cluster autoscaling deployment. When I run:</p>

<p><code>kubectl logs cluster-autoscaler-</code></p>

<p>I get the following output: </p>

<pre><code>I0706 13:26:36.338072       1 leaderelection.go:210] failed to renew 
lease kube-system/cluster-autoscaler
I0706 13:26:38.776977       1 leaderelection.go:210] failed to renew 
lease kube-system/cluster-autoscaler
I0706 13:26:43.119763       1 leaderelection.go:210] failed to renew 
lease kube-system/cluster-autoscaler
I0706 13:26:47.116439       1 leaderelection.go:210] failed to renew 
</code></pre>

<p>I've been looking into the error and it was to do with the namespace. When I  run the pod in a different namespace or the namespace recommended (kube-system - <a href="https://github.com/kubernetes/contrib/issues/2402" rel="nofollow noreferrer">https://github.com/kubernetes/contrib/issues/2402</a>) I still get the same error. Not sure what it causing it. </p>

<p>Thanks in advance for the help!</p>

Hobgob
<p>Follow this guide here to configure Cluster Autoscaler for Kubernetes running in AWS.</p>

<p><a href="https://samratpriyadarshi.com/2018/11/27/setup-cluster-autoscaler/" rel="nofollow noreferrer">Configure Cluster Autoscaler in Kubernetes</a></p>

<p>It should do the work without any errors.</p>
