• HashiCorp Developer

  • HashiCorp Cloud Platform
  • Terraform
  • Packer
  • Consul
  • Vault
  • Boundary
  • Nomad
  • Waypoint
  • Vagrant
Terraform
  • Install
  • Tutorials
    • About the Docs
    • Configuration Language
    • Terraform CLI
    • Terraform Cloud
    • Terraform Enterprise
    • CDK for Terraform
    • Provider Use
    • Plugin Development
    • Registry Publishing
    • Integration Program
  • Registry(opens in new tab)
  • Try Cloud(opens in new tab)
  • Sign up
Terraform Home

Tutorials

Skip to main contentTutorials

Get Started

  • AWS
  • Azure
  • Docker
  • GCP
  • OCI
  • Terraform Cloud

Fundamentals

  • CLI
  • Configuration Language
  • Modules
  • Provision
  • State
  • Terraform Cloud

Use Cases

  • Applications
  • AWS Services
  • Azure Services
  • HashiCorp Products
  • IT/SaaS Providers
  • Kubernetes
  • Machine Images
  • Networking
  • Policy
  • Security

Certification Prep

  • Associate Prep (002)
  • Associate Prep (003)
  • Associate Tutorials (002)
  • Associate Tutorials (003)

Production

  • Automate Terraform
  • Enterprise Patterns
  • Terraform Enterprise

Integrations

  • CDK for Terraform
  • Community Providers
  • Custom Framework Providers
  • Custom SDK Providers
  • Secrets

  • Resources

  • Tutorial Library
  • Certifications
  • Community Forum
    (opens in new tab)
  • Support
    (opens in new tab)
  • GitHub
    (opens in new tab)
  • Terraform Registry
    (opens in new tab)
  1. Developer
  2. Terraform
  3. Tutorials
  4. Kubernetes

Manage Kubernetes with Terraform

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.

Start
10 tutorials
  •  
    9min
    Provision an EKS Cluster (AWS)
    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.
    • Terraform
  •  
    8min
    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.
    • Terraform
  •  
    10min
    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.
    • Terraform
  •  
    22min
    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.
    • Terraform
  •  
    15min
    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.
    • Consul
    • Vault
    • Terraform
  •  
    10min
    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.
    • Consul
    • Vault
    • Terraform
  •  
    15min
    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.
    • Terraform
  •  
    10min
    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.
    • Terraform
  •  
    19min
    Manage Kubernetes Custom Resources
    Deploy an OpenFaaS serverless function on Kubernetes with a Custom Resources Definition. Use Terraform to update the function.
    • Terraform
  •  
    25min
    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.
    • Consul
    • Terraform
Give Feedback(opens in new tab)
  • Certifications
  • System Status
  • Terms of Use
  • Security
  • Privacy
  • Trademark Policy
  • Trade Controls
  • Give Feedback(opens in new tab)