https://my.oschina.net/u/4339825/blog/3318910
https://stackoverflow.com/questions/60593671/kubernetes-1-7-calico-log-message-calico-node-felix-live-bird-live-and-timeou
tail -f /var/log/messages
systemd: Scope libcontainer-19274-systemd-test-default-dependencies.scope has no PIDs. Refusing
There is already opened issue on Github, more details can be found here.
This issue is related with cgroup-driver. In newest Kubernetes version is set to systemd instead of cgroupfs.
One workaround is to configure rsyslog. Steps are well sescribed on this site. Below short version:
## 翻譯
問題原因跟cgroup-driver有關,最新版本的kubernetes配置cgroup-driver為systemd,而不是cgroupfs
cd /etc/rsyslog.d
vim ignore-systemd-session-slice.conf
## 添加如下內容
if ($programname == "systemd") and ($msg contains "_systemd_test_default.slice" or$msg contains "systemd-test-default-dependencies.scope") then {
stop
}
## 重啟rsyslog服務
service rsyslog restart