kaihoffman / terraform-template

Opinionated Template Repo for managing applications on a Civo Kubernetes cluster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-template

Opinionated Template Repo for managing applications on a Civo Kubernetes cluster

Quick Start

  1. Create a new git repo from this template

  2. Copy terraform.tfvars.example to terraform.tfvars

    cp terraform.tfvars.example terraform.tfvars
  3. Update the variable in terraform.tfvars with your Civo API Key (Get your civo.com api key - https://dashboard.civo.com/security)

  4. Run terraform init

  5. Run terraform apply

  6. Check the state of the pods in the cluster using:

    KUBECONFIG=`pwd`/kubeconfig kubectl get po -A
  7. Visit the nginx pod using the ingress

  8. TODO: a terraform kubernetes service with Traefik annotation pointed to the nginx deployment is required

HLD

This is an overview of the infrastructure being managed by this repo.

HLD

Terraform Provider Documentation

Variables

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" ]

Contribution Guide

TBC

Acknowledgements

About

Opinionated Template Repo for managing applications on a Civo Kubernetes cluster

License:Apache License 2.0


Languages

Language:HCL 100.0%