- Define the kubeconfig variable in the provider.tf file
terraform {
required_providers {
harvester = {
source = "registry.terraform.io/harvester/harvester"
version = "~> 0.1.0"
}
}
}
provider "harvester" {
kubeconfig = "/path/of/my/kubeconfig"
}
- Check if you can interact with the Harvester by creating resource like a SSH key
- Execute the
terraform apply
command
Expected Results
- The resource should be created
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
- Check if you can see your resource in the Harvester WebUI