From the course: Learning Kubernetes
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Add resource requests and limits to your pod - Kubernetes Tutorial
From the course: Learning Kubernetes
Add resource requests and limits to your pod
- [Narrator] Well configured containers let Kubernetes know how much memory and CPU to reserve on a worker node. In this video, you'll learn how to set CPU and memory requests and limits on the containers in your pods. Resources refer to the amount of available CPU and memory on the worker node running your pods. If you deploy a pod without a set of resource requests, it can be scheduled on a node that does not have enough processing power or memory and cause the node to fail. Similarly, if you deploy a pod without a set of resource limits, you can start a pod on a node, but if the application begins using more and more CPU or memory, it can use all those resources on the node causing it to fail. Failed nodes can cause outages, which you want to avoid. Let's add resource request and limits to our pod info container. I'm at the Kubernetes docs page called resource management for pods and containers. I'm looking for a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.