File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
content/zh/docs/setup/production-environment Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -877,9 +877,16 @@ Start-Service containerd
877
877
878
878
<!--
879
879
```shell
880
- ### systemd
881
-
882
- To use the `systemd` cgroup driver, set `plugins.cri.systemd_cgroup = true` in `/etc/containerd/config.toml`.
880
+ ### systemd {#containerd-systemd}
881
+
882
+ To use the `systemd` cgroup driver in `/etc/containerd/config.toml` with `runc`, set
883
+
884
+ ```
885
+ [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
886
+ ...
887
+ [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
888
+ SystemdCgroup = true
889
+ ```
883
890
When using kubeadm, manually configure the
884
891
[cgroup driver for kubelet](/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#configure-cgroup-driver-used-by-kubelet-on-master-node)
885
892
@@ -888,12 +895,14 @@ When using kubeadm, manually configure the
888
895
Refer to the [Frakti QuickStart guide](https://github.com/kubernetes/frakti#quickstart) for more information.
889
896
```
890
897
-->
891
- ### systemd
898
+ ### systemd {#containerd-systemd}
892
899
893
900
使用 ` systemd ` cgroup 驱动,在 ` /etc/containerd/config.toml ` 中设置
894
901
```
895
- [plugins.cri]
896
- systemd_cgroup = true
902
+ [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
903
+ ...
904
+ [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
905
+ SystemdCgroup = true
897
906
```
898
907
当使用 kubeadm 时,请手动配置
899
908
[ kubelet 的 cgroup 驱动] ( /zh/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#configure-cgroup-driver-used-by-kubelet-on-master-node )
You can’t perform that action at this time.
0 commit comments