K8s-修改PLEG的检查时间为30s

修改PLEG的检查时间为30s

vi /etc/systemd/system/kubelet.service 增加--housekeeping-interval=30s

[Unit]
Description=kubelet: The Kubernetes Node Agent
Documentation=http://kubernetes.io/docs/

[Service]
ExecStart=/usr/bin/kubelet --housekeeping-interval=30s # 增加参数
ExecStartPre=/usr/bin/kubelet-pre-start.sh
Restart=always
StartLimitInterval=0
RestartSec=10

[Install]
WantedBy=multi-user.target

留下评论