Running a Kubernetes cluster with RKE in minutes
1 min readSep 3, 2020
This article is a short instruction on how to build your own k8s cluster with a VPS-provider and RKE. I’m going to use Scaleway as a VPS-provider.
Prerequisites
- install rke cli locally
- provision a new VPS instance, I used DEV1-M with Ubuntu Bionic
Steps
- Install the RKE-compatible docker with the following command
curl https://releases.rancher.com/install-docker/19.03.sh | sh
- Add your user to docker group
usermod -aG docker root
- Set AllowTcpForwarding yes in
vi /etc/ssh/sshd_config
- Restart sshd service
systemctl restart sshd.service
- Use rke config to generate cluster configuration, make sure you set etcd and controlplane to [y] when asked about roles
- Run
rke up
- Copy cluster config to your local ~/.kube/config
cp kube_config_cluster.yml ~/.kube/config
- Check your nodes status
kubectl get nodes -o wide