khuedoan-homelab/infra/bootstrap.tf
2021-06-27 15:29:49 +07:00

35 lines
931 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
timeout = 600
values = [
file("${path.module}/values/argocd.yaml")
]
}
resource "helm_release" "longhorn" {
name = "longhorn"
repository = "https://charts.longhorn.io"
chart = "longhorn"
version = "1.1.1"
namespace = "longhorn"
create_namespace = true
wait = true
timeout = 600
}