rough-ice-6506607/06/2022, 12:39 PM
flags on kubelet. But If I don't have requests or limits in my pod spec it still crashes the node(NotReady state). I have tried combination of setting the above flags with eviction-hard flag as well. Is there any other solution to overcome this?
kube-reserved, system-reserved, kube-reserved-cgroup, system-reserved-cgroup
creamy-pencil-8291307/06/2022, 5:12 PM
If I don’t have requests or limits in my pod spec it still crashes the node(NotReady state).Yes, if you don’t put any limits on your pod, it is allowed to consume all the resources on your node - and with only 1GB of memory, that’s not going to take much. If you want the pod to not consume all the resources, you need to use limits. The kubelet reserved args only inform the scheduler how much to reserve for those functions. If you don’t place any requests or limits on the pod then setting the reservations is meaningless.