Skip to content

tehcyx/terraform-provider-kind

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

170 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Note

For the runtimeConfig field 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 option api/alpha you'd name the field api_alpha and it will set it to api/alpha when creating the corresponding kind config.

Example Usage

Copy the following code into a file with the extension .tf to create a kind cluster and load a local Docker image into it.

provider "kind" {}

resource "kind_cluster" "default" {
    name           = "test-cluster"
    wait_for_ready = true
}

resource "kind_load" "app" {
    image        = "myapp:latest"
    cluster_name = kind_cluster.default.name
}

Then run terraform init, terraform plan & terraform apply and follow the on-screen instructions. For more details check out the Quick Start section above.

About

Terraform Provider for kind (Kubernetes IN Docker)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 93.4%
  • Shell 4.5%
  • Makefile 1.1%
  • HCL 1.0%