- #INSTALLING DOCKER AND KUBERNETES ON UBUNTU INSTALL#
- #INSTALLING DOCKER AND KUBERNETES ON UBUNTU UPGRADE#
- #INSTALLING DOCKER AND KUBERNETES ON UBUNTU FULL#
- #INSTALLING DOCKER AND KUBERNETES ON UBUNTU SERIES#
Try snap info microk8s to see what versions are currently published.
#INSTALLING DOCKER AND KUBERNETES ON UBUNTU INSTALL#
For example, to follow the v1.18 series: sudo snap install microk8s -classic -channel=1.18/stableĬhannels are made up of a track and an expected level of MicroK8s’ stability.
#INSTALLING DOCKER AND KUBERNETES ON UBUNTU SERIES#
To follow a specific upstream release series it’s possible to select a channel during installation. MicroK8s is a snap and as such it is frequently updated to each release of Kubernetes. Refer to Snapd documentation for more information on installing snapd on your Linux distribution.įor other platforms (Windows, macOS, Raspberry Pi etc) and install methods, please see the MicroK8s documentation If you are using a different Linux distribution, you will have to install snapd first. However, you can also install MicroK8s from the command line: sudo snap install microk8s -classic If you are using Ubuntu, the quickest way to get started is to install MicroK8s directly from the snap store by clicking the “Install” button. See the Troubleshooting page.Previous step Next step 2. Note: The “rancher-cluster” parts of the two latter file names are dependent on how you name the RKE cluster configuration file. rancher-cluster.rkestate: The Kubernetes Cluster State file, this file contains the current state of the cluster including the RKE configuration and the certificates.
#INSTALLING DOCKER AND KUBERNETES ON UBUNTU FULL#
#INSTALLING DOCKER AND KUBERNETES ON UBUNTU UPGRADE#
The files mentioned below are needed to maintain, troubleshoot and upgrade your cluster. If you send a request to either, you should receive HTTP 404 response from the ingress controller: $ curl 10.0.1.100 You can also verify that your external load balancer works, and the DNS entry is set up correctly. To have a look at your cluster run: export KUBECONFIG=kube_config_cluster.yaml Make sure to save all of these files in a secure location, for example by putting them into a version control system. It also creates a kube_config_cluster.yaml file, that you can use to connect to the remote Kubernetes cluster locally with tools like kubectl or Helm. RKE creates a state file called rancher-cluster.rkestate, this is needed if you want to perform updates, modify your cluster configuration or restore it from a backup. nodes:Īfter that, you can create the Kubernetes cluster by running: rke up -config rancher-cluster.yaml For more information on the cluster YAML, have a look at the RKE documentation. Ensure that the IP addresses of the nodes and the SSH username are correct. Next, create a YAML file that describes the RKE cluster. You need several command line tools on the host where you have SSH access to the Linux nodes to create and interact with the cluster:Ĭurl -LO "$(curl -s )/bin/linux/amd64/kubectl" To apply the configuration, restart the Docker daemon: sudo systemctl daemon-reload Then ensure that your current user is able to access the Docker daemon without sudo: sudo usermod -aG docker YOUR_USERNAMEĪnd configure the Docker daemon to use the proxy to pull images: sudo mkdir -p /etc/systemd/system/Įnvironment="HTTP_PROXY= Environment="HTTPS_PROXY= Environment="NO_PROXY=127.0.0.0/8,10.0.0.0/8,cattle-system.svc,172.16.0.0/12,192.168.0.0/16" Now you can install Docker: curl -sL | sh If you are not using Ubuntu, you have to adapt this step accordingly: cat /dev/nullĪcquire::http::Proxy " Acquire::https::Proxy " EOF
Next configure apt to use this proxy when installing packages. For this perform the following steps on all three nodes.įor convenience export the IP address and port of your proxy into an environment variable and set up the HTTP_PROXY variables for your current shell: export proxy_host="10.0.0.5:8888"Įxport HTTP_PROXY= export HTTPS_PROXY= export NO_PROXY=127.0.0.0/8,10.0.0.0/8,cattle-system.svc,172.16.0.0/12,192.168.0.0/16 Installing Dockerįirst, you have to install Docker and setup the HTTP proxy on all three Linux nodes. Once the infrastructure is ready, you can continue with setting up an RKE cluster to install Rancher in.