Rancher
管理有docker的主機
而不是單純管理本機docekr
docker run –privileged -d –restart=unless-stopped -e CATTLE_BOOTSTRAP_PASSWORD=r402r402 -p 8099:80 -p 443:443 rancher/rancher
因為我在電腦A裝sERVER
但是電腦A也可以是CLIENT 但通常沒人這樣用
所以必須準備另外一台電腦B
至於電腦A(Rancher Server)要和電腦B連結
就要在電腦B下指令
admin/r402r402
所以這邊選擇使用GCP來架一個Rancher Server
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
rancher/rancher-agent 客戶端
https://localhost:443/
你可以建立很多個Clusters,當然也可以建立一個很大的Cluster,並且依照projects分配資源,筆者僅僅部署在本機端, 因此兩個都選擇Custom:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
sudo docker run -d –privileged –restart=unless-stopped –net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run rancher/rancher-agent:v2.6.5 –server https://localhost –token q5cz884s628vzgdm264wxnmgf2787c29qq8pnplsl84rrps65lhwf5 –ca-checksum a2fe80c6350af90a8e133bef5eafe6639a63f49ec598fd5127a2207a6106db56 –etcd –controlplane –worker
這邊要改一下https://localhost 改成固IP
然後貼到要被代理的主機CMD上面執行