danpilch / easy-kubeadm

Setup a Kubernetes 1.18 cluster easily on CentOS 8.1 with Ansible
MIT License
29 stars 7 forks source link

easy-kubernetes

Setup a Kubernetes v1.18 cluster easily on CentOS 8

Overview

This project intends to show how easy it is to setup a K8s cluster with minimal experience using Kubnernetes. I have adapted this project from the great guide: Installing Kubernetes on Linux with kubeadm

This system uses CRI-O container runtime

Requrements

Ansible (tested on 2.9.6)

CentOS (v8) hosts (be it, AWS, GCP or DigitalOcean etc.)

Vagrant (thanks @xenithorb)

Usage

You may need to change the brige interface in tests/Vagrantfile from bridge: "wlp2s0" to whatever is suitable for your environment.

# make edits to tests/dotenv
cd tests
source ./tests/dotenv
vagrant up

# copy kubeconfig to host
vagrant plugin install vagrant-scp
vagrant scp easy-kube-master:~/.kube/config ~/.kube