khuedoan-homelab/cluster/bootstrap.tf
2021-08-20 19:31:04 +07:00

35 lines
932 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.12.1"
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.2"
namespace = "longhorn"
create_namespace = true
wait = true
timeout = 600
}