2021-06-09 01:03:40 +07:00
|
|
|
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" {
|
2021-06-13 16:23:36 +07:00
|
|
|
name = "argocd"
|
|
|
|
repository = "https://argoproj.github.io/argo-helm"
|
|
|
|
chart = "argo-cd"
|
2021-06-13 16:46:26 +07:00
|
|
|
version = "3.6.8"
|
2021-06-09 01:03:40 +07:00
|
|
|
namespace = "argocd"
|
|
|
|
create_namespace = true
|
2021-06-13 16:23:36 +07:00
|
|
|
wait = true
|
2021-06-09 01:03:40 +07:00
|
|
|
}
|
2021-06-13 19:06:53 +07:00
|
|
|
|
|
|
|
resource "helm_release" "longhorn" {
|
|
|
|
name = "longhorn"
|
|
|
|
repository = "https://charts.longhorn.io"
|
|
|
|
chart = "longhorn"
|
|
|
|
version = "1.1.1"
|
|
|
|
namespace = "longhorn"
|
|
|
|
create_namespace = true
|
|
|
|
wait = true
|
|
|
|
}
|