terraform-enterprise
by HashiCorp
Official HashiCorp Terraform-Enterprise Chart
About this chart
Terraform Enterprise
This chart is used to install Terraform Enterprise in a generic Kubernetes environment. It is minimal in its configuration and contains the basic things necessary to launch Terraform Enterprise on a Kubernetes cluster.
Support for forking
This helm chart aims to meet the needs of the majority of our users. You are welcome to fork our helm chart and adapt it to your organization’s requirements.
If you contact HashiCorp support, include your custom helm chart alongside your support bundle to ensure support has all the information they need.
Prerequisites
To use the charts here, Helm must be configured for your Kubernetes cluster. Setting up Kubernetes and Helm are outside the scope of this README. Please refer to the Kubernetes and Helm documentation.
The versions required are:
- Helm 3.0+ - This is the earliest version of Helm tested. It is possible it works with earlier versions but this chart is untested for those versions.
- Kubernetes 1.25+ - This is the earliest version of Kubernetes tested. It is possible that this chart works with earlier versions but it is untested.
Instructions
Complete documentation and instructions for the installation of Terraform Enterprise can be found on the Terraform Enterprise developer site.
Admin Console Access Mode
The Admin Console access mode controls how the Admin Console UI and Admin API are exposed. This is configured via the tfe.adminConsole.accessMode value in your Helm values file.
Supported Values
| Value | :8443 (dedicated port) | :443/platform/admin (standard HTTPS) | Use Case |
|---|---|---|---|
port | UI + API | off | Preserve dedicated-port behavior, keep admin workflows separate |
path | off | UI + API | Serve Admin Console only on standard HTTPS path (for environments blocking non-standard ports) |
both | UI + API | UI + API | Enable both access methods simultaneously |
disabled | off | off | Completely disable Admin Console UI and API |
| unset | UI + API (legacy) | off | Falls back to TFE_ADMIN_CONSOLE_DISABLED behavior |
Examples
Default Helm deployment (no separate admin ingress needed):
tfe:
adminConsole:
accessMode: "both" # Admin Console accessible on both :8443 and :443/platform/admin
Dedicated port only (traditional behavior):
tfe:
adminConsole:
accessMode: "port" # Admin Console only on :8443
Standard HTTPS path only (for restricted environments):
tfe:
adminConsole:
accessMode: "path" # Admin Console only on :443/platform/admin
Disable Admin Console:
tfe:
adminConsole:
accessMode: "disabled" # No Admin Console access
Security Note: In
bothmode, the Admin Console is accessible on the primary:443listener in addition to the dedicated:8443port. If you rely on network segmentation of:8443to restrict administrative access, consider IP allow-listing the/platform/adminprefix when enablingbothmode.
Service Port Behavior
The Kubernetes Service automatically adjusts which ports are exposed based on the access mode:
| Access Mode | Standard HTTPS Port (443) | Admin HTTPS Port (8443) |
|---|---|---|
port | ✅ Exposed | ✅ Exposed |
path | ✅ Exposed | ❌ Not exposed |
both | ✅ Exposed | ✅ Exposed |
disabled | ✅ Exposed | ❌ Not exposed |
| unset | ✅ Exposed | ✅ Exposed (legacy) |
When accessMode is set to path or disabled, the admin HTTPS port (8443) is not exposed in the Service, as the Admin Console is either served only on the standard HTTPS path or completely disabled.
Helpful Commands
There are a number of common helm or kubectl commands you can use to monitor the installation and the runtime of Terraform Enterprise. We list some of them here. We assume that the namespace is terraform-enterprise. If you have a different namespace, replace it with yours.
-
To see releases:
helm list -n terraform-enterprise -
To check the status of the Terraform Enterprise pod:
kubectl get pod -n terraform-enterpriseIn the output, the
STATUSshould be inRunningstate and theREADYsection should show1/1. e.g:NAME READY STATUS RESTARTS AGE terraform-enterprise-5946d99fc-l22s9 1/1 Running 0 25mIf this is not the case, you can use the following steps to debug:
-
Check pod logs:
kubectl logs terraform-enterprise-5946d99fc-l22s9 -
To diagnose issues with the terraform-enterprise deployment such as image pull errors, run the following command:
kubectl describe deployments -n terraform-enterprise -
Exec into the pod if possible:
kubectl exec -it terraform-enterprise-5946d99fc-l22s9 -- /bin/bash -
In the Terraform Enterprise pod, run:
supervisorctl statusThis should show you which service failed. From outside the pod you can also do this:
kubectl exec -it terraform-enterprise-5946d99fc-l22s9 -- supervisorctl status -
All Terraform Enterprise services logs can be found in the pod here
/var/log/terraform-enterprise/. E.g:cat /var/log/terraform-enterprise/atlas.logFrom outside the pod, this will be:
kubectl exec -it terraform-enterprise-5946d99fc-l22s9 -- cat /var/log/terraform-enterprise/atlas.log
Additional Documentation
For more information about Terraform Enterprise and the capabilities of this helm chart please see the following additional documentation:
- Dependency Free Terraform Enterprise Quickstart Guide
- Terraform Enterprise Application Configuration Options
- Examples of Common Implementations
- Terraform Enterprise Common Kubernetes Configuration
- Terraform Enterprise Upgrades and Rollback
Deploy terraform-enterprise with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has terraform-enterprise on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartterraform-enterprise is pinned at v2.1.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply