

Basically this means that the Kubernetes cluster running the Rancher application itself is kind of a "parent" cluster. This is because the Rancher cluster itself serves as a Kubernetes Federation cluster. Note that at the end of the config file the "contexts" are configured. Click on this button and you will see a config in yaml format appearing in the browser:Ĭopy the content starting with "apiVersion" until the end. Remember the button "Launch kubectl" from above? There's a second button next to it: Kubeconfig File.

How to install curl in rancher shell how to#
So far so good, but how to connect to the cluster? The connection to the server localhost:8080 was refused - did you specify the right host or port? The kubectl command can now be ~ $ kubectl versionĬlient Version: version.Info
How to install curl in rancher shell update#
To install kubectl on this Ubuntu 16.04 (Xenial) derivate, the following steps are ~ $ sudo apt-get update & sudo apt-get install -y ~ $ curl -s | sudo apt-key add ~ $ sudo touch ~ $ echo "deb kubernetes-xenial main" | sudo tee -a ~ $ sudo apt-get ~ $ sudo apt-get install -y kubectl On my workstation I currently run Linux Mint 18.3, which runs Ubuntu 16.04 (Xenial) ~ $ cat /etc/*release* /etc/upstream-release/*ĭISTRIB_DESCRIPTION="Linux Mint 18.3 Sylvia"Ĭat: /etc/upstream-release: Is a directory There are packages ready for almost every OS/distribution. To do so follow the official documentation " Install and Set Up kubectl" which explains it straight forward. And this is what this article is about.įirst you need to install kubectl on your machine. But there's also the possibility to use kubectl from your own machine and connect to the cluster, even when managed by Rancher. It's fine and very helpful (indeed) for quick checks and verifications but for deeper analysis it can be a pain. However the shell has some major limitations (e.g.
