mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 09:39:56 +00:00
(Probably due to K8S version mismatch; vcluster was on 1.33 and the host cluster was on 1.35. Symptoms: some pods start, all their containers are ready, the pod shows up as ready, and yet, it's not considered ready so the deployment says 0/1 and Helm never completes.)
40 lines
801 B
HCL
40 lines
801 B
HCL
resource "helm_release" "_" {
|
|
name = "vcluster"
|
|
namespace = var.cluster_name
|
|
create_namespace = true
|
|
repository = "https://charts.loft.sh"
|
|
chart = "vcluster"
|
|
version = "0.30.4"
|
|
values = [
|
|
yamlencode({
|
|
controlPlane = {
|
|
proxy = {
|
|
extraSANs = [ local.guest_api_server_host ]
|
|
}
|
|
service = {
|
|
spec = {
|
|
type = "NodePort"
|
|
}
|
|
}
|
|
statefulSet = {
|
|
persistence = {
|
|
volumeClaim = {
|
|
enabled = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
sync = {
|
|
fromHost = {
|
|
nodes = {
|
|
enabled = true
|
|
selector = {
|
|
all = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
]
|
|
}
|