当前位置:网站首页>Pod scheduling of kubernetes
Pod scheduling of kubernetes
2022-06-26 15:00:00 【Hua Weiyun】
Kubernetes Of pod Dispatch
establish pod technological process
User pass kubectl Get into apiserver in , Store relevant information in etcd in ,scheduler Get into apiserver See if there is pod The creation of , If there is , adopt etcd Read the corresponding pod, Then through the scheduling algorithm , hold pod Dispatch to some node In nodes , The result information is updated to API Server in ,API Server Update to etcd The storage system .pod Dispatched to node Node passing kubelet visit apiserver, Thus in etcd Read in the pod Information , And then through docker Create a container
establish pod command :
kubectl create deployment web --image=nginxThen copy it three times
kubectl scale deployment web --replicas=3see pod Allocation on nodes
kubectl get pods -o wideinfluence pod Properties of scheduling
pod Of yaml Restrictions on resources in the file have an impact pod The scheduling , Node selector nodeSelector Labels can also affect pod The scheduling
For tagged resource objects , Use the tag selector to select the qualified resources to complete the required operations . When creating resources , Can be directly in its metadata Medium labels Property set label , Label with key-value Form settings , You can also use the following command
Commands for creating labels on nodes :
kubectl label node node1 env_role=devscheduler The daemon is responsible for selecting one of the working nodes based on the availability of system resources to run the system to be created pod object ,Kubernetes All work nodes are abstracted into resource pools, and resources are allocated and used uniformly .
User first node Set labels for resource objects , Then configure pod The object is matched and detected through the node label selector , Complete the scheduling of nodes
Node affinity nodeAffinity It's also related to scheduling , Node affinity is divided into hard affinity and soft affinity , Hard affinity indicates that the conditions must be met , Soft affinity conditions shall be met as far as possible .
The stain
The stain Taint Is an attribute of a node
View stain information :
kubectl describe node node1 | grep TaintThe value is NoSchedule Indicates that it will not be called ,PreferNoSchedule Means try not to schedule ,NoExecute It means that the current node will not be scheduled at the same time pod Delete
Add stain information :
kubectl taint node node1 env_role=yes:NoScheduleDelete tainted information :
kubectl taint node node1 env_role:NoSchedule-Stain tolerance attribute , Indicates that a node may be scheduled to even if it is tainted
️ Thank you for your
If you think this is helpful for you :
- Welcome to follow me ️, give the thumbs-up , Comment on , forward
- Focus on
Panpan small class, Push good articles for you regularly , There are also group chat and irregular lottery activities , You can say what you want , Communicate with the great gods , Learning together .
边栏推荐
- NAACL2022:(代码实践)好的视觉引导促进更好的特征提取,多模态命名实体识别(附源代码下载)...
- The JVM outputs GC logs, causing the JVM to get stuck. I am stupid
- 券商经理给的开户二维码安全吗?找谁可以开户啊?
- 房东拿租金去还房贷是天经地义的嘛
- R语言dplyr包bind_rows函数把两个dataframe数据的行纵向(竖直)合并起来、最终行数为原来两个dataframe行数的加和(Combine Data Frames)
- Is it safe for flush to register and open an account? Is there any risk?
- NVIDIA SMI error
- 集群中命令的执行过程
- 大学生值得珍藏的实用网站推荐
- R语言使用epiDisplay包的aggregate函数将数值变量基于因子变量拆分为不同的子集,计算每个子集的汇总统计信息、使用aggregate.data.frame函数计算分组汇总统计信息
猜你喜欢

feil_uVission4左侧工目录消失

Program analysis and Optimization - 8 register allocation

程序分析与优化 - 8 寄存器分配

使用宝塔面板部署flask环境

C语言刷题随记 —— 乒乓球比赛

Mark一下 Unity3d在Inspector中选中不了资源即Project锁定问题

VMware partial settings

聊聊 RPA 方向的规划:简单有价值的事情长期坚持做

一篇抄十篇,CVPR Oral被指大量抄袭,大会最后一天曝光!

Halcon C # sets the form font and adaptively displays pictures
随机推荐
Informatics Olympiad 1405: sum and product of prime numbers (thinking problem)
SAP gui 770 下载
cluster addslots建立集群
北京银行x华为:网络智能运维夯实数字化转型服务底座
Mathematical modeling of war preparation 30 regression analysis 2
Use abp Zero builds a third-party login module (II): server development
Numpy basic use
Electron
Where do people get their top energy?
文献1
Is it safe to open a stock account with the account manager online??
The DOTPLOT function in the epidisplay package of R language visualizes the frequency of data points in different intervals in the form of point graphs, specifies the grouping parameters with the by p
R语言glm函数逻辑回归模型、使用epiDisplay包logistic.display函数获取模型汇总统计信息(自变量初始和调整后的优势比及置信区间,回归系数的Wald检验的p值)、结果保存到csv
Solution to the upper limit of TeamViewer display devices
Pytorch深度学习代码技巧
备战数学建模30-回归分析2
Kubernetes的pod
Equation derivation: second order active bandpass filter design! (download: Tutorial + schematic + Video + code)
赠书 | 《认知控制》:我们的大脑如何完成任务?
A remove the underline from the label