Skip to content

Commit

Permalink
feat(platform): change runtime cgdriver to systemd (#2029)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lis authored Jul 25, 2022
1 parent bde64a6 commit 3ce92b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/platform/provider/baremetal/conf/containerd/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ state = "/run/containerd"
conf_dir = "/etc/cni/net.d"
[plugins."io.containerd.grpc.v1.cri".containerd]
default_runtime_name="runc"

[plugins."io.containerd.grpc.v1.cri".containerd.runtimes]

[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
runtime_type = "io.containerd.runc.v2"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true

{{ if .IsGPU}}
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
Expand Down
1 change: 1 addition & 0 deletions pkg/platform/provider/baremetal/conf/docker/daemon.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"experimental": true,
"debug": false,
"exec-opts": ["native.cgroupdriver=systemd"],
{{- if .IsGPU }}
"default-runtime": "nvidia",
"runtimes": {
Expand Down

0 comments on commit 3ce92b2

Please sign in to comment.