khuedoan-homelab/infra/bootstrap.tf
Khue Doan 0036b77a28 Move Longhorn back to infra layer
Due to race condition
2021-06-13 19:07:05 +07:00

29 lines
817 B
HCL

provider "helm" {
kubernetes {
host = rke_cluster.cluster.api_server_url
client_certificate = rke_cluster.cluster.client_cert
client_key = rke_cluster.cluster.client_key
cluster_ca_certificate = rke_cluster.cluster.ca_crt
}
}
resource "helm_release" "argocd" {
name = "argocd"
repository = "https://argoproj.github.io/argo-helm"
chart = "argo-cd"
version = "3.6.8"
namespace = "argocd"
create_namespace = true
wait = true
}
resource "helm_release" "longhorn" {
name = "longhorn"
repository = "https://charts.longhorn.io"
chart = "longhorn"
version = "1.1.1"
namespace = "longhorn"
create_namespace = true
wait = true
}