Opinionated Template Repo for managing applications on a Civo Kubernetes cluster
-
Create a new git repo from this template
-
Copy terraform.tfvars.example to terraform.tfvars
cp terraform.tfvars.example terraform.tfvars
-
Update the variable in terraform.tfvars with your Civo API Key (Get your civo.com api key - https://dashboard.civo.com/security)
-
Run
terraform init
-
Run
terraform apply
-
Check the state of the pods in the cluster using:
KUBECONFIG=`pwd`/kubeconfig kubectl get po -A
-
Visit the nginx pod using the ingress
-
TODO: a terraform kubernetes service with Traefik annotation pointed to the nginx deployment is required
This is an overview of the infrastructure being managed by this repo.
- https://registry.terraform.io/providers/civo/civo/1.0.18
- https://registry.terraform.io/providers/hashicorp/helm/2.6.0
- https://registry.terraform.io/providers/hashicorp/kubernetes/2.11.0
- https://registry.terraform.io/providers/hashicorp/local/2.2.3
Name | Type | Description | Default |
---|---|---|---|
civo_token | string | API Token for civo.com | "" |
kuberentes_api_access | list | list of IP addresses / subnets to allow access to the cluster api | [ "0.0.0.0/0" ] |
cluster_web_access | list | list of IP addresses / subnets to allow access to port 80 | [ "0.0.0.0/0" ] |
cluster_websecure_access | list | list of IP addresses / subnets to allow access to port 443 | [ "0.0.0.0/0" ] |
TBC