kubelet启动参数

4.3.6.4 kubelet
--------------------------
docker rm kube-kubelet -f
[centos版]
docker run -d --net=host --restart always --privileged=true --name kube-kubelet \
-v /:/rootfs:ro \
-v /sys:/sys:ro \
-v /sys/fs/cgroup:/sys/fs/cgroup:rw \
-v /dev:/dev \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/docker/:/var/lib/docker:rw \
-v /var/lib/kubelet/:/var/lib/kubelet:rw \
-v /var/run:/var/run:rw \
10.93.171.57:8082/library/google-containers/hyperkube-amd64:v1.7.2 \
/hyperkube \
kubelet \
--allow-privileged=true \
--api_servers=http://10.93.180.123:8080 \
--hostname_override=127.0.0.1 \
--pod-infra-container-image=10.93.171.57:8082/library/gcr.io/google_containers/pause-amd64:3.0 \
--cgroup-driver=systemd \
--cgroups-per-qos=false \
--enforce-node-allocatable="" \
--cluster-dns=10.2.0.123 \
--cluster-domain=cluster.local

docker logs kube-kubelet

[suse版]
docker run -d --net=host --restart always --privileged=true --name kube-kubelet \
-v /:/rootfs:ro \
-v /sys:/sys:ro \
-v /sys/fs/cgroup:/sys/fs/cgroup:rw \
-v /dev:/dev \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/docker/:/var/lib/docker:rw \
-v /var/lib/kubelet/:/var/lib/kubelet:rw \
-v /var/run:/var/run:rw \
10.93.171.57:8082/library/google-containers/hyperkube-amd64:v1.7.2 \
/hyperkube \
kubelet \
--allow-privileged=true \
--api_servers=http://10.93.162.131:8080 \
--hostname_override=127.0.0.1 \
--cgroup-driver=cgroupfs \
--cgroups-per-qos=false \
--enforce-node-allocatable="" \
--cluster-dns=10.2.0.123 \
--cluster-domain=cluster.local


--pod-infra-container-image=10.93.171.57:8082/library/gcr.io/google_containers/pause-amd64:3.0 \(设置预备的镜像,可能pause不能用)

转载于:https://www.cnblogs.com/yoyochecknow/p/7724546.html

你可能感兴趣的:(kubelet启动参数)