Container life cycle management
Kubernetes and the Kubernetes architecture effectively automate the life cycle management of application containers, but they can be difficult to set up and administer. In this section, we will check on best practices and how to implement them on your clusters quickly and easily:
- Containers with no limits might cause resource conflict with other containers and inefficient computational resource consumption. Use
ResourceQuota
andLimitRange
for restricting resource utilization:
a. You can use ResourceQuotas
to set a limit on the total amount of resources consumed by all containers in a Namespace. Other Kubernetes objects, such as the number of pods in the current namespace, can also have quotas imposed.
b. If you're concerned that someone might use your cluster to produce a large number of ConfigMaps, you can use LimitRange
to prevent this.
- Use Kubernetes pod security policies for enforcing security configurations—...