@zhangyy
2021-02-09T14:34:57.000000Z
字数 854
阅读 162
rancher系列
系统:centos7.9x64-1
安装好:k8s1.18.15
kubectl get node
mkdir -p /data/rancher/rancher
mkdir -p /data/rancher/auditlog
vim racher.sh
----
docker run -d --privileged --restart=unless-stopped -p 80:80 -p 443:443 -v /data/rancher/rancher:/var/lib/rancher -v /data/rancher/auditlog:/var/log/auditlog --name rancher rancher/rancher:stable
----
chmod +x rancher.sh
./rancher.sh
http://192.168.100.13
设置 ip 用户密码:
kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user admin
下载导入文件
wget https://192.168.100.13/v3/import/fx9lk5sdx647zng7sqqtptk8mpf78q699snsdwkqvrzxhbdhjgvkpf.yaml --no-check-certificate
kubectl apply -f fx9lk5sdx647zng7sqqtptk8mpf78q699snsdwkqvrzxhbdhjgvkpf.yaml