mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-31 06:26:19 -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
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/os: linux
|
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:
|
containers:
|
||||||
- name: haproxy
|
- name: haproxy
|
||||||
image: {{ haproxy_image_repo }}:{{ haproxy_image_tag }}
|
image: {{ haproxy_image_repo }}:{{ haproxy_image_tag }}
|
||||||
|
|||||||
@@ -144,6 +144,10 @@ spec:
|
|||||||
- kubernetes
|
- kubernetes
|
||||||
ip: 127.0.0.1
|
ip: 127.0.0.1
|
||||||
hostNetwork: true
|
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:
|
volumes:
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /etc/kubernetes/{{kube_vip_admin_conf}}
|
path: /etc/kubernetes/{{kube_vip_admin_conf}}
|
||||||
|
|||||||
@@ -13,7 +13,10 @@ spec:
|
|||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/os: linux
|
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:
|
containers:
|
||||||
- name: nginx-proxy
|
- name: nginx-proxy
|
||||||
image: {{ nginx_image_repo }}:{{ nginx_image_tag }}
|
image: {{ nginx_image_repo }}:{{ nginx_image_tag }}
|
||||||
|
|||||||
Reference in New Issue
Block a user