We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 29b86c5 + 150e07b commit b88bf1eCopy full SHA for b88bf1e
1 file changed
contrib/gce/configure.sh
@@ -176,6 +176,8 @@ if [ "${KUBERNETES_MASTER:-}" != "true" ]; then
176
cni_template_path=""
177
fi
178
179
+# Use systemd cgroup if cgroupv2 is enabled
180
+systemdCgroup="${CONTAINERD_CGROUPV2:-"false"}"
181
log_level="${CONTAINERD_LOG_LEVEL:-"info"}"
182
max_container_log_line="${CONTAINERD_MAX_CONTAINER_LOG_LINE:-16384}"
183
cat > ${config_path} <<EOF
@@ -204,6 +206,7 @@ disabled_plugins = ["io.containerd.internal.v1.restart"]
204
206
runtime_type = "io.containerd.runc.v2"
205
207
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
208
BinaryName = "${CONTAINERD_HOME}/usr/local/sbin/runc"
209
+ SystemdCgroup = ${systemdCgroup}
210
EOF
211
chmod 644 "${config_path}"
212
0 commit comments