サポートされているcgroupドライバーの問題に関するk8s-systemd

サポートされているcgroupドライバーに関するk8s

2019年のコミュニティ

  1. 8月29日、redhatシリーズシステムでのcgroupドライバーのデフォルトサポートがsystemdであることに言及する問題がありました。

    https://github.com/kubernetes-sigs/kubespray/issues/5134

    サポートされているcgroupドライバーの問題に関するk8s-systemd

  2. Issue 5134には、systemdをcgroup管理として使用する場合、systemdをv242バージョンに更新する必要があると記載されています。
    サポートされているcgroupドライバーの問題に関するk8s-systemd

公式ドキュメントでは、cgroupドライバーについて説明するときに、linuxディストリビューションをlinuxディストリビューションで使用する場合はcgroupドライバーをsystemdに設定する必要があるとも述べています。

因为cgroup的发展,linux的发行版本基本都是使用systemd服务来管理cgroup的,如果k8s使用cgroupfs而系统采用systemd,则系统中会存在两套管理cgroup,在资源使用有压力的情况下会导致使用不稳定。
https://kubernetes.io/docs/setup/production-environment/container-runtimes/#cgroup-drivers

サポートされているcgroupドライバーの問題に関するk8s-systemd

rhelに対応するデフォルトのシステムバージョンは219です。

つまり、現在直面しているsystemd dbusの問題はすべて、systemd cgroupドライバーがデフォルトで使用されているためですが、systemdバージョンはv242よりも低いです。

https://github.com/cri-o/cri-o/issues/3808cgroup
ドライバーを使用してrhel7の問題解決するには、systemdバージョンをv242にアップグレードする必要があります

参考記事:

Jan 30 22:40:01 iZwz959djw7jznons1li1gZ systemd-logind: Failed to start session scope session-31684.scope: The maximum number of pending replies per connection has been reached

https://github.com/coreos/bugs/issues/1435
https://github.com/kubernetes/kubeadm/issues/1394
https://github.com/systemd-rhel/rhel-7   
https://github.com/systemd-rhel/rhel-8/tree/v245
https://systemd.io/CONTRIBUTING/

systemd v242版本才修复
https://github.com/lnykryn/systemd-rhel/issues/266   systemd stop read and process dbus event of runc cgroup invokes #266
issue 226 对应的fix issue
          https://github.com/systemd/systemd/pull/11818  sd-bus: deal with cookie overruns #11818
           https://github.com/systemd/systemd/issues/11809 sd_bus->cookie as 32bit dbus1 message serial number overflow and systemd1 dbus no response. #11809

サポートされているcgroupドライバーの問題に関するk8s-systemd

おすすめ

転載: blog.51cto.com/bingdian/2667503