Question
Is it possible to enable swap for Kubernetes nodes?
There doesn’t seem to be an option to choose a distribution when setting up a node pool, which is understandable, as I’m sure Kubernetes has special requirements. But it seems that you can’t SSH into Kubernetes nodes, which again is understandable as that’s the point of Kubernetes and especially managed Kubernetes.
So I suspect the answer to my question is no. But it seems like such a simple little feature that could lead to more robust workloads and clusters.
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.
×
this is my story:
I tried to migrate github action to k8s using https://github.com/summerwind/actions-runner-controller , it supports autoscale runner by pending pull request on-demand. But the runner processed is killed by the system when it tries to build rust project because the llvm eating pod’s whole memory,it was useless to upgrade the machine to 64G。 the only way is to increment the node’s swap, but the swap option needs the cloud service provider to support it, I can not do it by myself.