Hi, I am very much new to kubernetes and trialing out the DO managed kubernetes product and have some questions that i need help with - struggling to find clear guides/docs describing the following:
Autoscaling
kubectl autoscale...
and doctl kubernetes cluster node-pool ...
(or via the dashboard) to configure autoscaling? Do they have the same effect?Docker images
Security:
30000-32767
is that correct?Context on my environment:
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
Yes there is a difference between the two. The first command
kubectl autoscale
automatically scales out your pod replicas of a given deployment. The second command automatically scales out the number of nodes in your cluster if your other ones resources are all used. doctl scales up nodes when there are pods stuck in pending due to the not enough resources. You can find documentation on the upstream autoscaler here: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#basicsYes, container images need to be in a accessible registry that nodes can pull the image from in order to run them.
Yes that is correct. The range allowed here is the default nodeport range for kubernetes services. We are working on making this firewall configuration more flexible. https://kubernetes.io/docs/concepts/services-networking/service/#nodeport
Regards,
John Kwiatkoski Senior Developer Support Engineer - Kubernetes