rancher 安装
helm repo add rancher-latest <http://rancher-mirror.oss-cn-beijing.aliyuncs.com/server-charts/latest>
kubectl create namespace cattle-system
docker 运行
docker run -d --privileged --restart=unless-stopped --name rancher -p 8081:80 -p 443:443 -v /data0/rancher:/var/lib/rancher -t rancher/rancher:v2.5.5
rancher 显示组件异常
/etc/kubernetes/manifests/controller-manager.conf
/etc/kubernetes/manifests/scheduler.conf
这两个文件里面,删除--port=0这个配置
然后systemctl restart kubelet
测试发现修改配置文件后组件会自动重启,无需重启kubelet