Terraform script for deploying a cluster to Digital Ocean and setting up helm
Add your digital ocean token to deployments/staging/cluster/variables.tf
Install teraform
- Deploy k8s cluster
make deploy
This will deploy a k8s cluster and download the kube_config
It also generates a input.tfvars.json
file that is used in step 2
- Setup k8s cluster
Ensure you have exported your pgp key to ./*/setup/secring.pgp
make setup
Run the following commands to validate everything has worked correctly
kubectl get pods --all-namespaces
See pods:
- tiller-deploy
- istio-citadel
- istio-pilot
- istio-ingressgateway
kubectl get serviceaccounts --all-namespaces
See service account:
- tiller
kubectl get namespaces
See new namespaces:
- istio-system
- go-apis
- Destroy k8s cluster
make destroy
make setup
needs to be ran twice, race condition between installing istio crds and installing istio