当前位置:网站首页>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
边栏推荐
- Mlx90640 infrared thermal imager temperature sensor module development notes (6)
- ~6. ccf 2021-09-1 数组推导
- 初识Opencv4.X----图像透视变换
- .net6与英雄联盟邂逅之——根据官方LCU API制作游戏助手
- Joint entity and event extraction model based on multi task deep learning
- 我的创作纪念日-从心出发
- ~6. CCF 2021-09-1 array derivation
- Annotation and reflection
- The development of smart home industry pays close attention to edge computing and applet container technology
- 2022-07-26 Daily: the first anniversary of the establishment of alphafold DB database, research on the lighting point of official promotion
猜你喜欢

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)

当AI邂逅生命健康,华为云为他们搭建三座桥

android安全基础知识学习

VP视频结构化框架

图神经网络Core数据集介绍

【常微分方程求解及绘图之求解小船行走轨迹】

unity透明通道的小技巧

Instructions for various interfaces of hand-held vibrating wire collector vh03

Jzoffer (array; string; linked list)

Lingo软件的使用
随机推荐
Plato farm is expected to further expand its ecosystem through elephant swap
@A thousand lines of work, ride the cloud together!
TDengine 助力西门子轻量级数字化解决方案 SIMICAS 简化数据处理流程
Some lightweight network models in detection and segmentation (share your own learning notes)
Flink SQL (III) connects to the external system system and JDBC
Sequence traversal of binary tree (implemented in C language)
[ostep] 04 virtualized CPU - process scheduling strategy
sp导出贴图到maya
When AI encounters life and health, Huawei cloud builds three bridges for them
敏捷开发与DevOps的对比
Joint entity and event extraction model based on multi task deep learning
[GYCTF2020]FlaskApp
OA项目之会议排座和送审
【愚公系列】2022年7月 Go教学课程 017-分支结构之IF
【方差分析】之matlab求解
注解和反射
Plato farm is expected to further expand its ecosystem through elephant swap
Redis data operation
~6. CCF 2021-09-1 array derivation
My creation Anniversary - from the heart