diff --git a/cluster/bootstrap.tf b/cluster/bootstrap.tf deleted file mode 100644 index 7409e869..00000000 --- a/cluster/bootstrap.tf +++ /dev/null @@ -1,34 +0,0 @@ -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 -} diff --git a/cluster/rke.tf b/cluster/main.tf similarity index 100% rename from cluster/rke.tf rename to cluster/main.tf diff --git a/cluster/terraform.tf b/cluster/terraform.tf index 84f5cbf7..2d3ac383 100644 --- a/cluster/terraform.tf +++ b/cluster/terraform.tf @@ -8,9 +8,5 @@ terraform { source = "rancher/rke" version = "1.2.3" } - helm = { - source = "hashicorp/helm" - version = "2.2.0" - } } } diff --git a/cluster/values/argocd.yaml b/cluster/values/argocd.yaml deleted file mode 100644 index 3ea4373b..00000000 --- a/cluster/values/argocd.yaml +++ /dev/null @@ -1,8 +0,0 @@ -server: - ingress: - enabled: true - hosts: - - argocd.khuedoan.com - # TODO Use HTTPS - extraArgs: - - --insecure