当前位置:网站首页>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=nginx
Then copy it three times
kubectl scale deployment web --replicas=3
see pod Allocation on nodes
kubectl get pods -o wide
influence 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=dev
scheduler 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 Taint
The 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:NoSchedule
Delete 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 .
边栏推荐
- Electron
- nvidia-smi 报错
- 手机股票注册开户安全吗,有没有什么风险?
- Pytoch deep learning code skills
- 获取两个dataframe的交并差集
- Login authentication service
- Deploy the flask environment using the pagoda panel
- 详解C语言编程题:任意三条边能否构成三角形,输出该三角形面积并判断其类型
- Excerpt from three body
- R language uses GLM function to build Poisson logarithm linear regression model, processes three-dimensional contingency table data to build saturation model, uses step function to realize stepwise re
猜你喜欢
Mark: unity3d cannot select resources in the inspector, that is, project locking
The JVM outputs GC logs, causing the JVM to get stuck. I am stupid
Electron
Detailed explanation of C language programming problem: can any three sides form a triangle, output the area of the triangle and judge its type
VMware partial settings
Get the intersection union difference set of two dataframes
Minister of investment of Indonesia: Hon Hai is considering establishing electric bus system and urban Internet of things in its new capital
文献1
Use abp Zero builds a third-party login module (II): server development
TS常用数据类型总结
随机推荐
Informatics Olympiad all in one 1400: count the number of words (string matching)
R language uses GLM function to build Poisson logarithm linear regression model, processes three-dimensional contingency table data to build saturation model, uses step function to realize stepwise re
Electron
Question bank and answers of the latest Guizhou construction eight (Mechanics) simulated examination in 2022
R language uses the aggregate function of epidisplay package to split numerical variables into different subsets based on factor variables, calculate the summary statistics of each subset, and use agg
Complimentary Book Cognitive Control: how does our brain accomplish tasks?
Sharing ideas for a quick switch to an underlying implementation
Equation derivation: second order active bandpass filter design! (download: Tutorial + schematic + Video + code)
Minister of investment of Indonesia: Hon Hai is considering establishing electric bus system and urban Internet of things in its new capital
Sectigo的IP证书申请流程
子查询的使用
This is the graceful file system mounting method, which is effective through personal testing
Keil4打开单片机工程一片空白,cpu100%程序卡死的问题解决
What is the ranking of Guosen Securities? Is it safe to open a stock account?
TCP congestion control details | 1 summary
券商经理给的开户链接安全吗?找谁可以开户啊?
R语言epiDisplay包的tableStack函数制作统计汇总表格(分组的描述性统计、假设检验等)、不设置by参数计算基础描述性统计信息、指定对于大多数样本负相关的变量进行反序
fileinput. js php,fileinput
Kubernetes的pod调度
Numpy basic use