Skip to content

Instantly share code, notes, and snippets.

@MOZGIII
Last active November 19, 2017 04:30
Show Gist options
  • Save MOZGIII/22bf4eb811ff5d4e0bbe36444422b6d3 to your computer and use it in GitHub Desktop.
Save MOZGIII/22bf4eb811ff5d4e0bbe36444422b6d3 to your computer and use it in GitHub Desktop.
Kubernetes Pro Tips (Free!)

Here's how to make sure docker and kubelet use same cgroups driver by explicitly configuring both:

Docker:

$ cat /etc/docker/daemon.json
{
    "exec-opts": ["native.cgroupdriver=cgroupfs"]
}

Kubelet (when set up using with kubeadm):

$ cat /etc/systemd/system/kubelet.service.d/05-custom.conf
[Service]
Environment="KUBELET_EXTRA_ARGS=--cgroup-driver=cgroupfs"

Don't forget to systemctl daemon-reload and restart the services after changing the configs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment