rancher2.3 cluster installation k8s

table of Contents

    1, rancher Introduction

    2, installation requirements 

        2.1 Operating System Requirements and Docker

        2.2 Hardware Requirements

        Requires 2.3Rancher port in communication with a user cluster

    3, a single node installation

    4, rancher web interface

        Log in to the web interface rancher 4.1

        Custom Cluster 4.2

        4.3 Import Creating good cluster

1, rancher Introduction

Each team can deploy applications on their choice of a public or private cloud, Rancher play in IT and organizational roles as DevOpsimage-20191125105835491.png

Along with a variety of functions:

  • Built-CI / CD line

  • Alarms and log collection function

  • Multi-cluster management function

  • Integrated Rancher Kubernetes Engine (RKE)

  • Integration with the cloud Kubernetes services (such as GKE, EKS, AKS)

2, installation requirements

2.1 Operating System Requirements and Docker

image-20191125104210860.png

2.2 Hardware Requirements

HA Cluster

image-20191125104545019.png

Single node

image-20191125104610584.png

Requires 2.3Rancher port in communication with a user cluster

image-20191125104812067.png

3, a single node installation

docker run -d --restart=unless-stopped \
  -p 80:80 -p 443:443 \
  -v /usr/local/rancher:/usr/local/rancher \
  rancher/rancher:latest

4, rancher web interface

    4.1 access the web interface

Login through IP host of

image-20191125110853326.png

Settings need to access the URL address

image-20191125110956934.png

Chinese font set

image-20191125111044885.png

Add a cluster

image-20191125111137103.png

Build your own cluster

image-20191125111225387.png


You can customize the RKE cluster, you can also import your own cluster has been built.

    4.2 Customizing a first cluster

Set custom cluster name, select the version you want to install the cluster.

image-20191125111408862.png

Select the required network policy

image-20191125111607904.png

According to their own needs settings

image-20191125111756334.png


After selecting the master node you need to install to run the following command master node

image-20191125111943481.png


Node running the following command at work

image-20191125112055397.png


Run the process will go to pull the required image, network time, depending on their circumstances.

After all containers can see good run the following interface, that your cluster has been good

image-20191125112358230.png

At this point the custom cluster is complete.

    4.3 Import Creating good cluster

image-20191125113210838.png


Just define a cluster name

image-20191125113259058.png

Copy the following two commands in the master node is running, run the first command, because it is self-signed certificate will be reported x509 errors, execute the following command to skip a mistake like

image-20191125113405043.png

When you see the master node

image-20191125113631090.png

In rancher interface to see

image-20191125112358230.png

It means that the import was successful!

Note: Due to the time the operation is not shot, the picture is back up, so do not care about the content of the picture, as long as you can see the corresponding map!

Guess you like

Origin blog.51cto.com/14268033/2455264