Provision and manage Kubernetes clusters with Terraform. Follow these guides to provision managed Kubernetes on AWS, Azure, or GCP, and interact with your cluster using the Kubernetes Terraform provider.
Provision a Kubernetes Cluster in AWS. Configure the AWS CLI to provide IAM credentials to Terraform, clone an example repository, and deploy the cluster. Configure kubectl and the Kubernetes dashboard. Finally destroy the cluster.
Provision an AKS Cluster (Azure)
Provision a Kubernetes Cluster in Azure. Configure the Azure CLI to provide credentials to Terraform, clone an example repository, and deploy the cluster. Configure kubectl to interact with the cluster. Finally destroy the cluster.
Provision a GKE Cluster (Google Cloud)
Provision a Kubernetes cluster in Google Cloud Platform (GCP). Configure the gcloud SDK to provide credentials to Terraform, clone an example repo, and deploy the cluster. Configure kubectl and the Kubernetes dashboard. Finally destroy the cluster.
Manage Kubernetes Resources via Terraform
Schedule a NGINX instance and expose it using the Terraform Kubernetes Provider. Configure the provider to access the cluster manually or based on kubectl context. Schedule and scale a deployment, and schedule a service.
Deploy Consul and Vault on Kubernetes with Run Triggers
Deploy a Consul-backed Vault cluster on Kubernetes, by linking Terraform Cloud workspaces with run triggers. Share Kubernetes cluster credentials between workspaces within an organization using data resources.
Automate Terraform Cloud Workflows
In this tutorial, you will use the TFE provider to create teams, version-control backed workspaces and set up run triggers in Terraform Cloud. You will then trigger the deployment of a Consul-backed Vault cluster on a Kubernetes.
Deploy Infrastructure with the Terraform Cloud Operator for Kubernetes
Use the Terraform Cloud Operator for Kubernetes to manage the lifecycle of
cloud and on-prem infrastructure through a single Kubernetes custom
resource. Provision an AWS SQS message queue as a prerequisite for an
application on Kubernetes.
Deploy Applications with the Helm Provider
Create a Kubernetes cluster with Terraform. Use the Helm provider to deploy a cluster monitoring app called kubewatch, and integrate your alerts with a Slack bot.
Manage Kubernetes Custom Resources
Deploy an OpenFaaS serverless function on Kubernetes with a Custom Resources Definition. Use Terraform to update the function.
Deploy Federated Multi-Cloud Kubernetes Clusters
Use Terraform to provision Kubernetes clusters in the Azure and AWS clouds, deploy Consul Helm charts enabling Consul federation, and deploy an example application on both clusters.