Restructure

This commit is contained in:
Khue Doan
2021-04-24 13:45:13 +07:00
parent 74d5a08a3b
commit 51a5468855
8 changed files with 16 additions and 19 deletions

View File

@ -3,13 +3,10 @@
default: init apply default: init apply
init: init:
cd platform \ terraform init
&& terraform init
plan: plan:
platform \ terraform plan
&& terraform plan
apply: apply:
cd platform \ terraform apply
&& terraform apply

View File

View File

@ -1,4 +1,4 @@
module "rke_cluster_bootstrap" { module "rke_cluster_bootstrap" {
source = "../modules/kubernetes-cluster-bootstrap" source = "./modules/kubernetes-cluster-bootstrap"
kube_config = rke_cluster.cluster.kube_config_yaml kube_config = rke_cluster.cluster.kube_config_yaml
} }

View File

@ -70,7 +70,7 @@ resource "helm_release" "longhorn" {
resource "helm_release" "argocd" { resource "helm_release" "argocd" {
name = "argocd" name = "argocd"
repository = "https://argoproj.github.io/argo-helm" repository = "https://argoproj.github.io/argo-helm"
chart = "argocd" chart = "argo-cd"
version = "3.1.2" version = "3.1.2"
namespace = "argocd" namespace = "argocd"
@ -78,18 +78,18 @@ resource "helm_release" "argocd" {
} }
# TODO move Vault out of bootstrap # TODO move Vault out of bootstrap
resource "helm_release" "vault" { # resource "helm_release" "vault" {
name = "vault" # name = "vault"
repository = "https://helm.releases.hashicorp.com" # repository = "https://helm.releases.hashicorp.com"
chart = "vault" # chart = "vault"
# TODO upgrade vault helm version # # TODO upgrade vault helm version
version = "0.8.0" # version = "0.8.0"
namespace = "vault" # namespace = "vault"
create_namespace = true # create_namespace = true
# TODO HA Vault # # TODO HA Vault
# TODO Auto unseal Vault # # TODO Auto unseal Vault
} # }
# TODO automatic ingress and tunnel for all services # TODO automatic ingress and tunnel for all services