Skip to content

Instantly share code, notes, and snippets.

@miry
Created March 26, 2017 23:11
Show Gist options
  • Save miry/6d00754820f111647ec773ebef2dccd5 to your computer and use it in GitHub Desktop.
Save miry/6d00754820f111647ec773ebef2dccd5 to your computer and use it in GitHub Desktop.
Kubernets v1.6.0-rc.1 service config
cat <<EOF > /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
[Service]
Environment="KUBELET_KUBECONFIG_ARGS=--kubeconfig=/etc/kubernetes/kubelet.conf --require-kubeconfig=true"
Environment="KUBELET_SYSTEM_PODS_ARGS=--pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true"
Environment="KUBELET_NETWORK_ARGS=--network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin"
Environment="KUBELET_DNS_ARGS=--cluster-dns=10.96.0.10 --cluster-domain=cluster.local"
Environment="KUBELET_AUTHZ_ARGS=--authorization-mode=Webhook --client-ca-file=/etc/kubernetes/pki/ca.crt"
Environment="KUBELET_EXTRA_ARGS=--cgroup-driver=systemd"
ExecStart=
ExecStart=/usr/bin/kubelet \$KUBELET_KUBECONFIG_ARGS \$KUBELET_SYSTEM_PODS_ARGS \$KUBELET_NETWORK_ARGS \$KUBELET_DNS_ARGS \$KUBELET_AUTHZ_ARGS \$KUBELET_EXTRA_ARGS
EOF
@miry
Copy link
Author

miry commented Mar 26, 2017

Added Environment="KUBELET_EXTRA_ARGS=--cgroup-driver=systemd" to original

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