Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
Don't specify cgroup driver... cgroupfs is the default.
Browse files Browse the repository at this point in the history
If someone wants to use another then a dropin with KUBELET_EXTRA_ARGS
will work fine!
  • Loading branch information
errm committed Apr 10, 2019
1 parent a70e65a commit d0ae081
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/system/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ WantedBy=multi-user.target
fs.Check(t, "/etc/systemd/system/kubelet.service", expected, 0640)

expected = `[Service]
Environment="KUBELET_CONTAINER_RUNTIME_ARGS=--container-runtime=remote --runtime-request-timeout=15m --container-runtime-endpoint=unix:///run/containerd/containerd.sock --cgroup-driver=systemd"
Environment="KUBELET_CONTAINER_RUNTIME_ARGS=--container-runtime=remote --runtime-request-timeout=15m --container-runtime-endpoint=unix:///run/containerd/containerd.sock"
`
fs.Check(t, "/etc/systemd/system/kubelet.service.d/40-container-runtime.conf", expected, 0640)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Service]
{{- if eq .Node.ContainerRuntime "containerd" }}
Environment="KUBELET_CONTAINER_RUNTIME_ARGS=--container-runtime=remote --runtime-request-timeout=15m --container-runtime-endpoint=unix:///run/containerd/containerd.sock --cgroup-driver=systemd"
Environment="KUBELET_CONTAINER_RUNTIME_ARGS=--container-runtime=remote --runtime-request-timeout=15m --container-runtime-endpoint=unix:///run/containerd/containerd.sock"
{{ else if eq .Node.ContainerRuntime "docker" }}
Environment="KUBELET_CONTAINER_RUNTIME_ARGS=--container-runtime=docker"
{{ end -}}

0 comments on commit d0ae081

Please sign in to comment.