Guest User

Untitled

a guest
Nov 20th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. Here's how to make sure docker and kubelet use same cgroups driver by explicitly configuring both:
  2.  
  3. Docker:
  4. ```shell
  5. $ cat /etc/docker/daemon.json
  6. {
  7. "exec-opts": ["native.cgroupdriver=cgroupfs"]
  8. }
  9. ```
  10.  
  11. Kubelet (when set up using with `kubeadm`):
  12. ```shell
  13. $ cat /etc/systemd/system/kubelet.service.d/05-custom.conf
  14. [Service]
  15. Environment="KUBELET_EXTRA_ARGS=--cgroup-driver=cgroupfs"
  16. ```
  17.  
  18. Don't forget to `systemctl daemon-reload` and restart the services after changing the configs.
Add Comment
Please, Sign In to add comment