Skip to content

Commit

Permalink
Merge pull request #6651 from afbjorklund/cgroup-systemd
Browse files Browse the repository at this point in the history
Change cgroup driver from cgroupfs to systemd
  • Loading branch information
afbjorklund authored Feb 23, 2020
2 parents 2f1f303 + 3398013 commit 5ee57d4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/iso/minikube-iso/package/containerd-bin/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ oom_score = 0
enable_selinux = false
sandbox_image = "k8s.gcr.io/pause:3.1"
stats_collect_period = 10
systemd_cgroup = false
systemd_cgroup = true
enable_tls_streaming = false
max_container_log_line_size = 16384
[plugins.cri.containerd]
Expand Down
2 changes: 1 addition & 1 deletion deploy/iso/minikube-iso/package/crio-bin/crio.conf
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ seccomp_profile = ""
apparmor_profile = "crio-default-1.16.1"

# Cgroup management implementation used for the runtime.
cgroup_manager = "cgroupfs"
cgroup_manager = "systemd"

# List of default capabilities for containers. If it is empty or commented out,
# only the capabilities defined in the containers json file by the user/kube
Expand Down
10 changes: 10 additions & 0 deletions deploy/iso/minikube-iso/package/docker-bin/daemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"exec-opts": [
"native.cgroupdriver=systemd"
],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2"
}
6 changes: 6 additions & 0 deletions deploy/iso/minikube-iso/package/docker-bin/docker-bin.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ define DOCKER_BIN_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 \
$(@D)/docker-proxy \
$(TARGET_DIR)/bin/docker-proxy

# https://kubernetes.io/docs/setup/production-environment/container-runtimes/#docker

$(INSTALL) -Dm644 \
$(DOCKER_BIN_PKGDIR)/daemon.json \
$(TARGET_DIR)/etc/docker/daemon.json
endef

define DOCKER_BIN_INSTALL_INIT_SYSTEMD
Expand Down

0 comments on commit 5ee57d4

Please sign in to comment.