https://github.com/nikitabugrovsky/k8s-lab-digitalocean
K8S Lab: 3 nodes setup: k8s-master + 2 worker nodes on digital ocean (Centos 7 box)
https://github.com/nikitabugrovsky/k8s-lab-digitalocean
centos7 digitalocean k8s lab multi-node vagrant
Last synced: about 2 months ago
JSON representation
K8S Lab: 3 nodes setup: k8s-master + 2 worker nodes on digital ocean (Centos 7 box)
- Host: GitHub
- URL: https://github.com/nikitabugrovsky/k8s-lab-digitalocean
- Owner: nikitabugrovsky
- Created: 2019-07-18T09:27:49.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-09T12:25:27.000Z (almost 7 years ago)
- Last Synced: 2023-09-08T13:49:32.970Z (almost 3 years ago)
- Topics: centos7, digitalocean, k8s, lab, multi-node, vagrant
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# K8S Lab: 3 nodes setup: k8s-master + 2 worker nodes on Digital Ocean (centos 7).
# Requirements
1. [Digital Ocean Account with Personal Access Token (read & write permissions)](https://www.digitalocean.com/docs/api/create-personal-access-token/)
2. Supported Host OS:
- Linux
- MacOS
3. Vagrant >= 2.2.5([Vagrant Installation Guide](https://www.vagrantup.com/docs/installation/))
4. Vagrant plugins:
- vagrant-digitalocean (``` vagrant plugin install vagrant-digitalocean ```)
5. Ansible >= 2.8.2 ([Ansible Installation Guide](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html))
6. Supported Guest OS: digital_ocean (``` vagrant box add digital_ocean ```)
# How to Create K8S Lab
```bash
DO_API_KEY=
./k8s-cluster.sh create
```
# How to Destroy K8S Lab
```bash
DO_API_KEY=
./k8s-cluster.sh delete
```
# Inspired by
- [Digital Ocean Docs](https://www.digitalocean.com/community/tutorials/how-to-create-a-kubernetes-cluster-using-kubeadm-on-debian-9)
- [K8S DOCS](https://kubernetes.io/blog/2019/03/15/kubernetes-setup-using-ansible-and-vagrant/)