====== Install Rancher on Kubernetes/Docker ====== //Note: The instructions below will only work with Docker installed as the Container runtime for Kubernetes// 1. Run the following on the Kubernetes Host machine docker run -d --restart=unless-stopped \ -p 8080:80 -p 8443:443 \ --privileged \ rancher/rancher:latest 2. Once the container has completed, navigate to the following url https://192.168.1.6:8443/dashboard or http://192.168.1.6:8080/dashboard 3. You should be presented with a screen to complete initial set up 4. Once logged in add your existing Kubernetes cluster. Click import existing as per below: {{:rancher-import.jpg?1888x853|rancher-import.jpg}} 5. Choose to "Import any Kubernetes Cluster" {{:rancher-import-generic.jpg?432x205|rancher-import-generic.jpg}} 6. Give the Cluster a name and click "Create" 7. At the next screen it is essential the highlighted are run on your Kubernetes Cluster, in the order shown in the image below. **Important:** The 1st command requires the username from your **/root/.kube/config **file {{:rancher-registration.jpg?1870x631|rancher-registration.jpg}} 8. The Host will be imported. Be patient this can take some time