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