/
DirectorySecurity AdvisoriesPricing
Sign inRequest a trial
Directory
tofu-controller logo

tofu-controller

Last changed

Request a free trial

Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.

Request trial
Tags
Overview
Comparison
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for tofu-controller

A GitOps OpenTofu and Terraform controller for Flux

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/tofu-controller:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Compatibility Notes

tofu-controller is composed of multiple images:

  • cgr.dev/ORGANIZATION/tofu-controller:latest
  • cgr.dev/ORGANIZATION/tofu-controller-runner:latest

The container images are comparable to the official v16.0.0-rc.x pre-release version of tofu-controller and tf-runner images.

Getting Started

To deploy tofu-controller, you can follow the steps below:

Prerequisites

  • helm
  • flux v2.0+

Install Flux

  1. Install flux operator and related CRDs via kubectl
kubectl apply -f https://github.com/fluxcd/flux2/releases/latest/download/install.yaml
  1. Verify CRDs have been established
kubectl wait --for=condition=Established crd --all -n flux-system --timeout=60s
  1. Verify all flux related pods are ready
kubectl wait --for=condition=ready -n flux-system pod -l app=helm-controller --timeout=30s
kubectl wait --for=condition=ready -n flux-system pod -l app=image-automation-controller --timeout=30s
kubectl wait --for=condition=ready -n flux-system pod -l app=image-reflector-controller --timeout=30s
kubectl wait --for=condition=ready -n flux-system pod -l app=kustomize-controller --timeout=30s
kubectl wait --for=condition=ready -n flux-system pod -l app=notification-controller --timeout=30s
kubectl wait --for=condition=ready -n flux-system pod -l app=source-controller --timeout=30s

Install tofu-controller via Helm using values.yaml

  1. Create a values.yaml, specifying the Chainguard images:
cat <<EOF > values.yaml
# -- Controller-specific configurations
image:
  # -- Controller image repository
  repository: cgr.dev/ORGANIZATION/tofu-controller
  # -- Controller image pull policy
  pullPolicy: IfNotPresent
  # -- Controller image tag
  tag: "latest"

# -- Runner-specific configurations
runner:
  image:
    # -- Runner image repository
    repository: cgr.dev/ORGANIZATION/tofu-controller-runner
    # -- Controller image pull policy
    pullPolicy: IfNotPresent
    # -- Runner image tag
    tag: "latest"
EOF
  1. Install the Helm chart for Rancher Fleet using the following command:
helm -n cattle-fleet-system install --create-namespace --wait fleet-crd \
    fleet/fleet-crd
helm -n cattle-fleet-system install --create-namespace --wait fleet \
    fleet/fleet  --values values.yaml
  1. Verify that the tofu-controller pod is up and running
kubectl wait --for=condition=ready -n flux-system pod -l app.kubernetes.io/name=tofu-controller --timeout=60s

You should now have Chainguard tofu-controller with a Chainguard tf-runner running in your cluster.

Documentation and Resources

What are Chainguard Containers?

Chainguard Containers are minimal container images that are secure by default.

In many cases, the Chainguard Containers tagged as :latest contain only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager. Chainguard Containers are built with Wolfi, our Linux undistro designed to produce container images that meet the requirements of a more secure software supply chain.

The main features of Chainguard Containers include:

For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a -dev variant.

Although the -dev container image variants have similar security features as their more minimal versions, they feature additional software that is typically not necessary in production environments. We recommend using multi-stage builds to leverage the -dev variants, copying application artifacts into a final minimal container that offers a reduced attack surface that won’t allow package installations or logins.

Learn More

To better understand how to work with Chainguard Containers, please visit Chainguard Academy and Chainguard Courses.

In addition to Containers, Chainguard offers VMs and Libraries. Contact Chainguard to access additional products.

Trademarks

This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.

Licenses

Chainguard container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:

  • ( BSD-3-Clause

  • Apache-2.0

  • BSD-3-Clause

  • GPL-2.0-or-later

  • GPL-3.0-or-later

  • ISC

  • LGPL-2.1-or-later

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Compliance

A FIPS validated version of this image is available for FedRAMP compliance. STIG is included with FIPS image.


Related images
tofu-controller-fips logoFIPS
tofu-controller-fips

Category
application

Safe Source for Open Sourceâ„¢
Contact us
© 2025 Chainguard. All Rights Reserved.
Private PolicyTerms of Use

Products

Chainguard ContainersChainguard LibrariesChainguard VMs