mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #23491 from onorua/master
set KillMode for kubelet to process, fix for #13511
This commit is contained in:
commit
e17213a2a8
@ -76,6 +76,7 @@ coreos:
|
|||||||
--container-runtime=${KUBERNETES_CONTAINER_RUNTIME}
|
--container-runtime=${KUBERNETES_CONTAINER_RUNTIME}
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
KillMode=process
|
||||||
|
|
||||||
- name: kube-proxy.service
|
- name: kube-proxy.service
|
||||||
command: start
|
command: start
|
||||||
|
@ -65,6 +65,7 @@ Requires=docker.service
|
|||||||
EnvironmentFile=-/opt/kubernetes/cfg/kubelet
|
EnvironmentFile=-/opt/kubernetes/cfg/kubelet
|
||||||
ExecStart=/opt/kubernetes/bin/kubelet ${KUBE_PROXY_OPTS}
|
ExecStart=/opt/kubernetes/bin/kubelet ${KUBE_PROXY_OPTS}
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
KillMode=process
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -135,6 +135,7 @@ coreos:
|
|||||||
--reconcile-cidr=false
|
--reconcile-cidr=false
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
KillMode=process
|
||||||
|
|
||||||
- name: docker.service
|
- name: docker.service
|
||||||
drop-ins:
|
drop-ins:
|
||||||
|
@ -112,6 +112,7 @@ coreos:
|
|||||||
--configure-cbr0=${KUBERNETES_CONFIGURE_CBR0}
|
--configure-cbr0=${KUBERNETES_CONFIGURE_CBR0}
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
KillMode=process
|
||||||
|
|
||||||
- name: kube-proxy.service
|
- name: kube-proxy.service
|
||||||
command: start
|
command: start
|
||||||
|
@ -159,6 +159,7 @@ coreos:
|
|||||||
--v=2
|
--v=2
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
KillMode=process
|
||||||
- name: kube-proxy.service
|
- name: kube-proxy.service
|
||||||
command: start
|
command: start
|
||||||
content: |
|
content: |
|
||||||
|
@ -6,6 +6,7 @@ Documentation=https://github.com/kubernetes/kubernetes
|
|||||||
EnvironmentFile=/etc/sysconfig/kubelet
|
EnvironmentFile=/etc/sysconfig/kubelet
|
||||||
ExecStart=/usr/local/bin/kubelet "$DAEMON_ARGS"
|
ExecStart=/usr/local/bin/kubelet "$DAEMON_ARGS"
|
||||||
Restart=always
|
Restart=always
|
||||||
|
KillMode=process
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user