Resource Request/Limit in Kubernetes
Hello There , Welcome back again on new post on Kubernetes tutorial. In todays article, we will focus on configuring resource requests and resource limits. Each Pod requires certain amount of memory and cpu to function but some unusual circumstances Pod can behave weirdly and may consume entire cluster resource causing application and node failures. This behaviour can be controlled by below two configuration in Pod. Requests : It is minimum amount of resource require for Pod to function. Kubernetes will look for available nodes to schedule pod based on requested resource. Limits : It is maximum amount of resource required by Pod can consume. In this article , we will accomplish following points. Create a Pod without Resource Configuration Perform CPU Stress on Container Observe Resource Utilisation of Pod and Nodes. Enable Resource Configuration in Pod Observe Resource Utilisation of Pod and Nodes again. Pre-requisite : Minikube Cluster Do cker Image ...