Skip to content

Instantly share code, notes, and snippets.

@rootfs
Created March 21, 2018 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rootfs/ee5552271809262192795a503ee25f94 to your computer and use it in GitHub Desktop.
Save rootfs/ee5552271809262192795a503ee25f94 to your computer and use it in GitHub Desktop.
#!/bin/bash
docker run \
--volume=/:/rootfs:rw \
--volume=/var/run:/var/run:rw \
--volume=/sys:/sys:rw \
--volume=/sys/fs/cgroup:/sys/fs/cgroup:rw \
--volume=/var/lib/docker:/var/lib/docker:rw \
--volume=/var/lib/kubelet/:/var/lib/kubelet:rw \
--volume=/dev:/dev \
--volume=/run:/run \
--volume=/run/xtables.lock:/run/xtables.lock:rw \
--net=host \
--pid=host \
--privileged=true \
kubelet \
/bin/kubelet --containerized --allow-privileged --cadvisor-port=0 --v=3 --vmodule= --chaos-chance=0.0 --container-runtime=docke\
r --hostname-override=127.0.0.1 --address=127.0.0.1 --kubeconfig /var/run/kubernetes/kubelet.kubeconfig --feature-gates=MountPropagatio\
n=true --cpu-cfs-quota=true --enable-controller-attach-detach=true --cgroups-per-qos=true --cgroup-driver=systemd --keep-terminated-pod\
-volumes=true --eviction-soft= --eviction-pressure-transition-period=1m --pod-manifest-path=/var/run/kubernetes/static-pods --fail-swap\
-on=false --cluster-dns=8.8.8.8 --port=10250
@rootfs
Copy link
Author

rootfs commented Mar 21, 2018

kill kubelet then run the script

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