Harvester + k3s Provisioner using Rancher

Usage

  1. Get the Harvester kubeconfig and place it in harvester.kubeconfig
  2. Adapt the config
  3. Configure Harvester with terraform apply

Requirements

Name Version
terraform ~> 1.3
harvester 0.6.2
rancher2 3.0.2

Inputs

Name Description Type
cluster_networks The name for the cluster network
object({
nics = list(string)
mtu = optional(number)
bond_mode = optional(string)
bond_miimon = optional(number)

})
cluster_vlans n/a
map(object({
vlans = list(number)
}))
harvester_cluster_name The name shown in the UI, needed for interaction via the Rancher UI string
harvester_kube_config The location to check for the kubeconfig to connect to Harverster string
images The name for the cluster network
map(object({
url = string
name = optional(string)
namespace = optional(string)
}))
rancher2 Connection details for the Rancher2 API
object({
access_key = string,
secret_key = string,
url = string
})
teams n/a
map(object({
limits = object({
project = object({
cpu = string
memory = string
requests_storage = string
})
namespace = object({
cpu = string
memory = string
requests_storage = string
}) })
members = list(string)
additional_namespace = optional(map(object({
limits = object({
cpu = string
memory = string
requests_storage = string
})
})))
}))

Outputs

No outputs.