stable
This commit is contained in:
1 parent
95c52f768d
commit
bfaeee9bf4
32 files changed
+215
-426
No files matched your search
@@ -0,0 +1,96 @@
|
||||
|
||||
resource "helm_release" "local-chart-infrastructure" {
|
||||
name = "infrastructure"
|
||||
chart = "charts/infrastructure"
|
||||
namespace = "default"
|
||||
set = [
|
||||
{
|
||||
name = "ns.metallb"
|
||||
value = module.k8s-helm-charts.namespaces.plugins.metallb
|
||||
},
|
||||
{
|
||||
name = "ns.argocd"
|
||||
value = module.k8s-helm-charts.namespaces.plugins.argo-cd
|
||||
},
|
||||
{
|
||||
name = "gitops.sshkey"
|
||||
value = var.ssh_key
|
||||
}
|
||||
]
|
||||
timeout = 120
|
||||
force_update = true
|
||||
}
|
||||
|
||||
module "k8s-helm-charts" {
|
||||
source = "./tf-modules/k8s-helm-charts"
|
||||
plugins = {
|
||||
"external-secrets" : {
|
||||
repository = "https://charts.external-secrets.io"
|
||||
version = "0.14.2"
|
||||
},
|
||||
"metallb" : {
|
||||
repository = "https://metallb.github.io/metallb"
|
||||
version = "0.14.9"
|
||||
},
|
||||
"cert-manager" : {
|
||||
repository = "https://charts.jetstack.io"
|
||||
version = "1.17.1"
|
||||
values : [yamlencode({
|
||||
installCRDs : true
|
||||
})]
|
||||
},
|
||||
"argo-cd" : {
|
||||
"repository" : "https://argoproj.github.io/argo-helm"
|
||||
"version" : "7.8.7"
|
||||
"values" : [
|
||||
yamlencode({
|
||||
configs = {
|
||||
cm = {
|
||||
"exec.enabled" : true
|
||||
}
|
||||
params = {
|
||||
"server.insecure" = true
|
||||
"server.basehref" = "/"
|
||||
"server.rootpath" = ""
|
||||
}
|
||||
}
|
||||
crds = {
|
||||
install = true
|
||||
keep = false
|
||||
}
|
||||
server = {
|
||||
ingress = {
|
||||
enabled = false
|
||||
}
|
||||
ingressGrpc = {
|
||||
enabled = false
|
||||
}
|
||||
}
|
||||
})
|
||||
]
|
||||
},
|
||||
"tailscale-operator" : {
|
||||
repository = "https://pkgs.tailscale.com/helmcharts"
|
||||
version = "1.82.0"
|
||||
values : [
|
||||
yamlencode({
|
||||
oauth = {
|
||||
clientId = var.tailscale.client_id
|
||||
clientSecret = var.tailscale.client_secret
|
||||
}
|
||||
})
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
output "ns" {
|
||||
value = module.k8s-helm-charts.namespaces
|
||||
}
|
||||
|
||||
|
||||
resource "kubernetes_namespace" "test" {
|
||||
metadata {
|
||||
name = "test"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user