当前位置:网站首页>Kubernetes ---- pod configuration resource quota
Kubernetes ---- pod configuration resource quota
2022-07-26 14:32:00 【51CTO】
One 、Pod Resource quotas
1.1 Introduction to resource quota configuration
The program in the container needs to run , It must take up some resources , such as CPU Memory and so on. , If you don't limit the resources of a container , Then it may eat a lot of resources , Cause the gas container to fail to operate , In this case ,kubernetes Provides access to memory and CPU A mechanism for allocating resources , This mechanism is mainly through resources Option class implementation , It has two sub options
- limits: Used to limit the maximum resources used by the runtime container , When the container takes up more than limits Will be terminated , And restart
- requests: Used to set the minimum resource required by the container , If environmental resources are not enough , The container cannot start
1.2 Resource quota configuration
as follows , edit pod_base.yaml file , Yes nginx The container sets the upper and lower resource limits
Use the following command to create pod
Use the following command to query pod, Find the quota configuration at this time , The environment meets the requirements ,pod It starts normally
Use the following command to delete the resource
1.3 Quota over allocation test
You can do an experiment here , take cpu Modify the lower limit to 10, The upper limit is changed to 20, Then try again , Because the core count of the virtual machine here is 4, Modify the lower limit to 10 The latter is obviously unable to meet the requirements
Then create it using the following command :
After re creation, you can see the prompt here through the following command cpu It's not enough
Use the following command to delete the resource
边栏推荐
- Jzoffer (array; string; linked list)
- 多线程——线程池
- [GYCTF2020]FlaskApp
- C语言贪吃蛇-链表和指针练习
- GOM登录器配置免费版生成图文教程
- Keyboard shortcut to operate the computer (I won't encounter it myself)
- 当AI邂逅生命健康,华为云为他们搭建三座桥
- Mysql5.7 is installed through file zip - Ninth Five Year Plan xiaopang
- Integer internal cache
- Arithmetic operation and logic operation of image in opencv
猜你喜欢

How to evaluate the test quality?

Arithmetic operation and logic operation of image in opencv

如何评价测试质量?

OA项目之我的会议

First knowledge of opencv4.x --- image perspective transformation

Prediction and value evaluation of technology fusion relationship based on multiple features

Install dexdump on win10 and remove the shell

Plato Farm有望通过Elephant Swap,进一步向外拓展生态

Basic knowledge about memory chips

【使用工具条绘图】
随机推荐
Kubernetes----Pod配置资源配额
基于机器学习的技术术语识别研究综述
Red * is added to the input box to indicate mandatory items
什么是Restful风格以及它的四种具体实现形式
[untitled]
UDP multithreaded online chat
Leetcode1170- compare the occurrence frequency of the minimum letter of the string (the corresponding occurrence frequency of each string minimum element in the map set storage array)
Low power multi-channel wfas1431 wireless data acquisition and transmission instrument operation process description
在检测分割中一些轻量级网络模型(自己学习的笔记分享)
[ostep] 03 virtualized CPU - restricted direct execution mechanism
Large and small end mode
Iscc2021 lock problem solution
全校软硬件基础设施一站式监控 ,苏州大学以时序数据库替换 PostgreSQL
maya将模型导入到unity
Integer internal cache
Understand the meaning of length in MySQL data types
Joint entity and event extraction model based on multi task deep learning
[ostep] 02 virtualized CPU - process
『SignalR』. Net using signalr for real-time communication
GOM login configuration free version generate graphic tutorial