GitXplorerGitXplorer
h

do-k8s

public
5 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
53da5b975d6d87c9c9417c866c52f57997da694d

traefik: fix task name

hhervenicol committed 7 years ago
Unverified
66cbd30e9f786084a246b1c3bd1c498d503f2121

traefik conf: verbose logs

hhervenicol committed 7 years ago
Unverified
51b40cb113f45ca231eec93e53064e0a361b2386

added traefik (still some config to do)

hhervenicol committed 7 years ago
Unverified
b56157f81e2b01fba3d352c2f00fe72125aa3c89

update todo list

hhervenicol committed 7 years ago
Unverified
31688f1ae277f76e3a632103dce390e90f43cbca

kube config and user environment

hhervenicol committed 7 years ago
Unverified
5d6a9f00ced35621814d2f2c0c5a5f780ac08cb3

README: fix markdown

hhervenicol committed 7 years ago

README

The README file for this repository.

Abstract

These are some tools to create a kubernetes cluster in Digitalocean.

  • terraform creates the VMs
  • kubeadm manages Kubernetes configuration
  • ansible configures and runs kubeadm on the servers
  • contiv for the network layer
  • traefik as public proxy

Requirements

DigitalOcean account

  • setup your info in tf_env.sh

terraform

ansible

Using https://github.com/kairen/kubeadm-ansible

What it does

creates nodes on DO

Install kubeadm on them

and deploy kubernetes through kubeadm

Run

  • ./genkey.sh # Only once, to generate the kube user key
  • cd terraform
  • ../gen_nodes_from_manager1.sh
  • eval terraform plan $(../params.sh)
  • eval terraform apply $(../params.sh)
  • eval terraform destroy $(../params.sh)
  • ../generate_inventory.sh > ../ansible/inventory
  • cd ../ansible
  • ansible-playbook -i inventory site.yml -u root

Connect

  • ssh -i keys/kubekey kube@[manager IP]
  • contiv is available on https://[manager]:10000/

Caveats

  • kubeadm currently supports only one master, so this is not suitable for production

Todo

  • auto-update Traefik conf (kubernetes provider?)
  • Use Ansible dynamic inventory from tfstate
  • Trigger Ansible from Terraform