Rancher upgrade cluster to 2.5 + Installation Monitoring and ISTIO guide

In recent days, we have upgraded the Kubernetes cluster built by Rancher from Rancher2.3 to 2.5. After Rancher2.5, we have learned about the previous monitoring, log and service grid. Components such as Grafana are not removed but will no longer be supported.

This cluster-level monitoring, logging, network configuration, and so on is then moved to the Cluster Explorer and can be accessed through the dashboard in the upper right corner.

This is quite a big change. The monitoring, logging, and grid configuration will have to be uninstalled and then reinstalled. This article will walk you through it.

How does Rancher upgrade?

The Rancher upgrade can be followed up on the official website and is no more than a few commands.

docker stop <RANCHER_CONTAINER_NAME>
#container_name Specifies the rancher container ID as seen in docker ps
docker create --volumes-from <RANCHER_CONTAINER_NAME> --name rancher-data rancher/rancher:<RANCHER_CONTAINER_TAG>

      
        # container_name = RANCHER_CONTAINER_TAG
      
This step is to create a data container, later used for recovery
docker run --volumes-from rancher-data -v $PWD:/backup busybox tar zcvf /backup/rancher-data-backup-<RANCHER_VERSION>-<DATE>.tar.gz /var/lib/rancher
When you're done running, you'll see a file like rancher-data-backup-v2.1.3-20181219.tar.gz
docker pull rancher/rancher:<RANCHER_VERSION_TAG>
# pull down the version you want to upgrade
docker run -d --volumes-from rancher-data \
  --restart=unless-stopped \
  -p 80:80 -p 443:443 \
  --privileged \
# --ulimit nofile=65536:65536 \ 
  rancher/rancher:<RANCHER_VERSION_TAG>
# It is recommended to add ulimit, although it is not officially mentioned, it may cause too many open files
Copy the code

Then your Rancher will be upgraded. After a while, open the page and you will see it in the lower right corner.

Uninstalling corresponding Applications

This upgrade does not support the smooth upgrade of the original monitoring and grid system, so it needs to be deleted from the original control panel first. It needs to be noted that the monitoring system, it is likely that you did not configure only one monitoring system before, so you need to delete all of them.

Click on each one to see if the previous surveillance was turned on, and if it was turned on, turn it off

All of these need to be deleted, or the Cluster Explorer for a while is unable to install, I was notified that there is no delete, toss over for more than half an hour.

Installing corresponding Applications

Start by opening the dashboard in the upper right corner

Enter Apps&Marketplace(PS: If you don’t have Apps&Marketplace, you can click the Apps on the upper left to enter)

All that’s left is to install it as you need it

After the installation is complete, you can click on the drop-down menu in the upper right corner of the Cluster Explorer home page to access the corresponding module.

I got it. I’m done