diff --git a/k3s/csi.tf b/k3s/csi.tf index 550a922..f9a05f5 100644 --- a/k3s/csi.tf +++ b/k3s/csi.tf @@ -23,6 +23,6 @@ resource "null_resource" "csi" { command = local.csi_secret } provisioner "local-exec" { - command = "kubectl apply --kubeconfig ${var.kubeconfig_file} -f https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.3.2/deploy/kubernetes/hcloud-csi.yml" + command = "helm repo add hcloud https://charts.hetzner.cloud && helm repo update hcloud && helm install hcloud-csi hcloud/hcloud-csi -n kube-system --kubeconfig ${var.kubeconfig_file}" } } diff --git a/k3s/upgrade_controller.tf b/k3s/upgrade_controller.tf index c4a7b93..bbba3da 100644 --- a/k3s/upgrade_controller.tf +++ b/k3s/upgrade_controller.tf @@ -60,7 +60,7 @@ resource "null_resource" "upgrade_controller" { first_main_ip = var.main_ips[0] } provisioner "local-exec" { - command = "kubectl apply --kubeconfig ${var.kubeconfig_file} -f https://github.com/rancher/system-upgrade-controller/releases/download/v0.9.1/system-upgrade-controller.yaml" + command = "kubectl apply --kubeconfig ${var.kubeconfig_file} -f https://github.com/rancher/system-upgrade-controller/releases/download/v0.13.2/system-upgrade-controller.yaml" } }