CENTOS7 Deploying rancher Management k8s clusters

Source: Internet
Author: User
Tags docker ps docker run k8s

#yum Install Docker-io

#systemctl Start Docker

Serial Number IP usage notes
1 192.168.1.237 Rancher Master
2 192.168.1.236 Rancher from
3 192.168.1.238 Rancher from

#docker run-d--restart=unless-stopped-p 8080:8080 rancher/server

Http://192.168.1.237:8080/admin/access/local

Access control: Add user account information Admin/[email protected]
App Store Installation k8s

#192.168.1.236 Join Rancher Cluster
Docker run-e cattle_agent_ip= "192.168.1.236"-e cattle_host_labels= ' Name=docker01 '--rm--privileged-v/var/run/ Docker.sock:/var/run/docker.sock-v/var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.11/http 192.168.1.237:8080/v1/scripts/6a7548b62f95b0feb565:1514678400000:cnvu3mmlyadrxy3xkev5sgncwg

Store Install k8s kubernetes cluster

To uninstall the rancher cluster node:

192.168.1.236
Stop all containers
Docker ps-a |awk ' {print $} ' |while read line; Do Docker stop $line; Done
192.168.1.236
Remove all containers
Docker ps-a |awk ' {print $} ' |while read line; Do Docker rm-f $line; Done
Uninstalling Docker
Docker.x86_64 2:1.13.1-74.git6e3bb8e.el7.centos
Yum Remove docker-*-y

Rancher Master Node 192.168.1.237
Docker Stop Rancher/server
Docker RM Rancher/server
Yum Remove docker-*-y

CENTOS7 Deploying rancher Management k8s clusters

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.