terraform-provider-kind
terraform-provider-kind copied to clipboard
Terraform Provider for kind (Kubernetes IN Docker)
Terraform Provider for kind
Overview
The Terraform Provider for kind enables Terraform to provision local Kubernetes clusters on base of Kubernetes IN Docker (kind).
Quick Starts
- Using the provider
- Provider development
Note
For the
runtimeConfigfield there's special behaviour for options containing a/character. Since this is not allowed in HCL you can just use_which is internally replaced with a/for generating the kind config. E.g. for the optionapi/alphayou'd name the fieldapi_alphaand it will set it toapi/alphawhen creating the corresponding kind config.
Example Usage
Copy the following code into a file with the extension .tf to create a kind cluster with only default values.
provider "kind" {}
resource "kind_cluster" "default" {
name = "test-cluster"
}
Then run terraform init, terraform plan & terraform apply and follow the on screen instructions. For more details on how to influence creation of the kind resource check out the Quick Start section above.