Anyone know if it's safe to use <https://www.pulum...
# kubernetes
b
b
this won't work without a corresponding autoscaler pod unfortunately
b
@billowy-army-68599 I presume there is no api to apply to node autoscaler right, one needs to run it manually via kubectl ?
someone mentioned doing it via the k8s yaml package
i don't mind wrapping calls to
Copy code
<https://docs.aws.amazon.com/eks/latest/userguide/cluster-autoscaler.html>
b
what do you mean? you should be able to do it with Puumi
b
i'm talking about these commands
Copy code
kubectl apply -f <https://raw.githubusercontent.com/kubernetes/autoscaler/master/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml>
so the autoscaling in the kubs repo is for pod autoscaling
i need some way to do node autoscaling
basically apply that yaml
sorry i must be missing something ?
is it basically just through the yaml/config package ?
these are pod autoscalers, not node autoscalers
sorry just need to know if there some other api for node scaling
like i need to run stuff like this from exec other wise
*kubectl -n kube-system set image deployment.apps/cluster-autoscaler cluster-autoscaler=
us
.gcr.io/k8s-artifacts-prod/autoscaling/cluster-autoscaler:v*_`1.15.n`_
which will require me to save out the kubeconfig to the default dir, which i was hoping not to do
@billowy-army-68599 ^
b
there is no API for node scaling, it's provided by the cluster autoscaler which basically decides to add a node if pods are in pending state. you can install everything in this file https://raw.githubusercontent.com/kubernetes/autoscaler/master/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml using pulumi or you can use the
configFile
resource. you could also use the helm chart: https://github.com/kubernetes/autoscaler/tree/master/charts
b
right so that YAML is basically the same as what is on the aws page
it's just to properly
install
that, the docs say that you need to run few more kubctl commands for it tobe propertly functional
b
yeah, you can achieve the same thing as the
kubectl edit
is doing using a transformation
@bitter-application-91815 i can try write up an example of this for you but it'll take me a couple days as I've got something else in the works
b
no stress, but how about trying to run a command like this
Copy code
kubectl -n kube-system set image deployment.apps/cluster-autoscaler cluster-autoscaler=<http://us.gcr.io/k8s-artifacts-prod/autoscaling/cluster-autoscaler:v1.15.n|us.gcr.io/k8s-artifacts-prod/autoscaling/cluster-autoscaler:v1.15.n>
that's the last step
the edit should be doable
b
if you install from the helm chart you wouldn't need to do that: https://github.com/kubernetes/autoscaler/blob/master/charts/cluster-autoscaler-chart/values.yaml you'd just set the image version in your values
b
ah okay cool, shall go down that route in the morning, thanks Lee