Terraform Provider Kustomize
Introduction
The Terraform provider for Kustomize is available from the Terraform registry.
Please refer to the documentation for information on how to use the kustomization_build
and kustomization_overlay
data sources, or the kustomization_resource
resource.
This is a standalone Terraform Provider, but is also used in the Terraform GitOps framework Kubestack.
Getting Help
Community Help
If you have any questions while following the tutorial, join the #kubestack channel on the Kubernetes community. To create an account request an invitation.
Professional Services
For organizations interested in accelerating their GitOps journey, professional services are available.
Contributing
Contributions to the Kubestack framework are welcome and encouraged. Before contributing, please read the Contributing and Code of Conduct Guidelines.
One super simple way to contribute to the success of this project is to give it a star.
Development Requirements
- Terraform 0.12.x
- Go 1.13 (to build the provider plugin)
Building and Developing the Provider
To work on the provider, you need go installed on your machine. The provider uses go mod to manage its dependencies, so GOPATH is not required.
To compile the provider, run make build
as shown below. This will build the provider and put the provider binary in the terraform.d/plugins/linux_amd64/
directory.
make build
In order to test the provider, run the acceptance tests using make test
. You have to set the KUBECONFIG_PATH
environment variable to point the tests to a valid config file. Each tests uses an individual namespaces. Kind or Minikube clusters work well for testing.
make test
Kubestack Repositories
- kbst/terraform-kubestack
- Terraform GitOps Framework - Everything you need to build reliable automation for AKS, EKS and GKE Kubernetes clusters in one free and open-source framework.
- kbst/kbst
- Kubestack Framework CLI - All-in-one CLI to scaffold your Infrastructure as Code repository and deploy your entire platform stack locally for faster iteration.
- kbst/terraform-provider-kustomization (this repository)
- Kustomize Terraform Provider - A Kubestack maintained Terraform provider for Kustomize, available in the Terraform registry.
- kbst/catalog
- Catalog of cluster services as Kustomize bases - Continuously tested and updated Kubernetes services, installed and customizable using native Terraform syntax.