Terraform formula for creating a Kubernetes cluster running on Scaleway
The default configuration includes Kubernetes add-ons: DNS, Dashboard and UI.
Clone or download repo.
Copy sample.terraform.tfvars
to terraform.tfvars
and insert your variables.
To generate your kubernetes cluster token, run python -c 'import random; print "%0x.%0x" % (random.SystemRandom().getrandbits(3*8), random.SystemRandom().getrandbits(8*8))'
and set the kubernetes_token variable.
$ brew update && brew install kubectl terraform
$ terraform plan
$ terraform apply
$ scp root@<master_ip>:/etc/kubernetes/admin.conf .
$ kubectl --kubeconfig ./admin.conf proxy
Access the dashboard and api via the following address:
- API:
http://localhost:8001/api/v1
- Dashboard:
http://localhost:8001/ui