⚠️ The provider name on Terraform registry has been renamed fromalessiodionisi/k0stocgroschupp/k0s, please update yourrequired_providersblock.
Terraform provider to create and manage k0s Kubernetes clusters, using embedded k0sctl.
You can install stable releases of the provider from the Terrafom registry.
Each entry in k0s_cluster.hosts[].files accepts either src (a local file path)
or content (inline text), but not both. For example, inside a host configuration:
files = [
{
name = "app-config"
dst = "/etc/app.conf"
perm = "0600"
content = <<-EOT
enabled=true
endpoint=https://example.com
EOT
}
]Inline content must not be empty. It is uploaded through k0sctl's file upload
phase before k0s configuration and initialization. Although content is marked
sensitive, its value is stored in Terraform state; protect state access accordingly.
If you wish to work on the provider, you'll first need these requirements:
To compile the provider, run task install. This will build the provider and put the provider binary in the $GOPATH/bin directory.
To generate or update documentation, run task generate.
In order to run the full suite of acceptance tests, run task acceptance-tests.
Note: acceptance tests create real resources, and often cost money to run.