New Terraform Tutorial: Deploy Infrastructure with the Terraform Cloud Operator for Kubernetes
Learn how to use the Terraform Cloud Operator for Kubernetes to manage the infrastructure lifecycle through a Kubernetes custom resource.
The Terraform Cloud Operator for Kubernetes (Operator) allows you to manage the lifecycle of cloud and on-premises infrastructure from within the Kubernetes control plane. Our new tutorial, Deploy Infrastructure with the Terraform Cloud Operator for Kubernetes, will guide you through deploying the Operator to your Kubernetes cluster and using it to provision application-related infrastructure
The Operator uses a Kubernetes Custom Resource Definition (CRD) to manage Terraform Cloud workspaces. These workspaces execute a Terraform Cloud run to provision Terraform modules. The Operator uses Terraform Cloud's state handling and locking, sequential execution of runs, and established patterns for injecting secrets and provisioning resources.
![Diagram showing interaction between Terraform Cloud workspace, Terraform Operator, and Kubernetes workspace custom resource](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F2885%2F1618440893-tfc-operator-k8s.png&w=1920&q=75)
» Get Started
In this tutorial, you will configure and deploy the Operator to a Kubernetes cluster and use it to create a Terraform Cloud workspace. You will also use the Operator to provision a message queue that the example application needs for deployment to Kubernetes.
» Learn More
Visit the following resources to learn more about the Terraform Cloud Operator for Kubernetes.
- Check out the hashicorp/terraform-k8s repository to learn more about the Operator and its design.
- Learn more about the Operator helm chart in the hashicorp/terraform-helm repository. For more detail, check out example Workspace specifications.
- Watch a demo of the Operator, at Demo: GitOps configuration using the Terraform Cloud Operator for Kubernetes or Demo: HashiCorp Terraform Operator for Kubernetes.
- Discover more about managing Kubernetes with Terraform with the tutorials on HashiCorp Learn.
For even more news about our latest tutorials being added to HashiCorp Learn, follow @HashiCorp on Twitter.
Sign up for the latest HashiCorp news
More blog posts like this one
![Simplify policy adoption in Terraform with pre-written Sentinel policies for AWS](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F2885%2F1620155432-blog-library-product-terraform-aws-logomarks-dark.jpg&w=3840&q=75)
Simplify policy adoption in Terraform with pre-written Sentinel policies for AWS
The new pre-written policy library co-developed by HashiCorp and AWS is now generally available, aiming to reduce the barrier of adoption for policy as code infrastructure workflows.
![Terraform provides more flexible controls with project-owned variable sets](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F2885%2F1714170900-blog-library-product-hcp-terraform-dark.jpg&w=3840&q=75)
Terraform provides more flexible controls with project-owned variable sets
Project-owned variable sets simplify management, reduce dependencies, and allow for more flexible control over access and usage.
![A smoother HCP Terraform workspace experience](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F2885%2F1714170900-blog-library-product-hcp-terraform-dark.jpg&w=3840&q=75)
A smoother HCP Terraform workspace experience
Learn how to automate HCP Terraform workspace setup and onboarding with the TFE provider, a custom module, and good requirements gathering.