mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-30 06:13:29 -02:30
fix(kubernetes/node): use numeric priority for static pods (#13490)
Signed-off-by: Jules Skrill <julesskrill@gmail.com>
This commit is contained in:
@@ -13,7 +13,10 @@ spec:
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
nodeSelector:
|
||||
kubernetes.io/os: linux
|
||||
priorityClassName: system-node-critical
|
||||
{# Static pods do not support priorityClassName, so set the numeric priority of
|
||||
system-node-critical directly, otherwise kubelet may evict this pod early:
|
||||
https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#pod-selection-for-kubelet-eviction #}
|
||||
priority: 2000001000
|
||||
containers:
|
||||
- name: haproxy
|
||||
image: {{ haproxy_image_repo }}:{{ haproxy_image_tag }}
|
||||
|
||||
@@ -144,6 +144,10 @@ spec:
|
||||
- kubernetes
|
||||
ip: 127.0.0.1
|
||||
hostNetwork: true
|
||||
{# Static pods do not support priorityClassName, so set the numeric priority of
|
||||
system-node-critical directly, otherwise kubelet may evict this pod early:
|
||||
https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#pod-selection-for-kubelet-eviction #}
|
||||
priority: 2000001000
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /etc/kubernetes/{{kube_vip_admin_conf}}
|
||||
|
||||
@@ -13,7 +13,10 @@ spec:
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
nodeSelector:
|
||||
kubernetes.io/os: linux
|
||||
priorityClassName: system-node-critical
|
||||
{# Static pods do not support priorityClassName, so set the numeric priority of
|
||||
system-node-critical directly, otherwise kubelet may evict this pod early:
|
||||
https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#pod-selection-for-kubelet-eviction #}
|
||||
priority: 2000001000
|
||||
containers:
|
||||
- name: nginx-proxy
|
||||
image: {{ nginx_image_repo }}:{{ nginx_image_tag }}
|
||||
|
||||
Reference in New Issue
Block a user