In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to use Rancher 1.6. the editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Rancher 2.0 has been out for some time, the biggest feeling is that various platforms in the container cloud world are beginning to turn to K8S, and the biggest highlight of rancher 2.0 is the support for various public container cloud platforms. There is no support for the docker swarm ecosystem in 2.0, swarm is a cool pace, and 1.6 can not be smoothly upgraded to 2.0. It is officially announced that there is support for docker swarm in version 1.6. however, it supports docker swarmkit, not docker's built-in swarm mode, and the support has always been a validation function in version 1.6, informally. However, because of the support for custom mode, students who want to use native docker can still try the first war, direct 2.0 to K8S is a bit too hard.
System OSUbuntu 16.04.3 LTSKernel4.13.0-32Resource2cpu/2Gmem role ubuntu16.04-1172.31.68.241Harbor/Rancher-serverubuntu16.04-2172.31.68.242Rancher-agentubuntu16.04-4172.31.68.243Rancher-agent image preparation
Ps: use the latest version 1.6 to launch rancher via private network
Rancher-server, prepare docker pull rancher/server:v1.6.21docker tag rancher/server:v1.6.21 172.31.68.241/library/rancher-server:v1.6.21docker push 172.31.68.241/library/rancher-server:v1.6.21.
Rancher-agent, prepare docker pull rancher/agent:v1.2.11docker tag rancher/agent:v1.2.11 172.31.68.241/library/rancher-agent:v1.2.11docker push 172.31.68.241/library/rancher-agent:v1.2.11.
Deploy rancher-server to launch docker run-d-restart=unless-stopped-p 8888 CATTLE_BOOTSTRAP_REQUIRED_IMAGE=172.31.68.241/library/rancher-agent:v1.2.11 172.31.68.241/library/rancher-server:v1.6.21 8080-e CATTLE_BOOTSTRAP_REQUIRED_IMAGE=172.31.68.241/library/rancher-agent:v1.2.11 172.31.68.241/library/rancher-server:v1.6.21
Log in to rancher-ui http://172.31.68.241:8888/
Ps: the first time you log in with an admin user, you will be asked to set your password and set your account after entering the system.
Add Host
Rancher-agent launches # ubuntu-2docker run-e CATTLE_AGENT_IP= "172.31.68.242"-- rm-- privileged-v / var/run/docker.sock:/var/run/docker.sock-v / var/lib/rancher:/var/lib/rancher 172.31.68.241/library/rancher-agent:v1.2.11 http://172.31.68.241:8888/v1/scripts/49E65A8F3FC27C9776B7:1514678400000:DUbOJHAnZI7YDfEv5u9SIBH3vk#ubuntu-3docker run-e CATTLE_AGENT_ IP= "172.31.68.243"-- rm-- privileged-v / var/run/docker.sock:/var/run/docker.sock-v / var/lib/rancher:/var/lib/rancher 172.31.68.241/library/rancher-agent:v1.2.11 http://172.31.68.241:8888/v1/scripts/49E65A8F3FC27C9776B7:1514678400000:DUbOJHAnZI7YDfEv5u9SIBH3vk
Private Mirror Library Settings
Start the application
Detection and application
Rancher CLI uses configuration via config #. / rancher configURL []: http://172.31.68.241:8888/v1Access Key []: 01532A700BA4DF0C68B6Secret Key []: 3v1yex93GXcUoLfsipe28N5HMAHHYXWvV9ddgPbwEnvironments: [1] Default (1a5) [2] stg (1a11) [3] dev (1a12) Select: 1INFO [0072] Saving config to / root/.rancher/cli.json
Rancher ps/hostsrancher psrancher hosts
This is the end of this article on "how to use Rancher 1.6". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.