-
Notifications
You must be signed in to change notification settings - Fork 2
/
helm.tf
106 lines (88 loc) · 2.92 KB
/
helm.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
provider "helm" {
kubernetes {
host = module.eksv2.cluster_endpoint
cluster_ca_certificate = module.eksv2.cluster_ca_certificate
token = module.eksv2.cluster_auth_token
}
}
locals {
xquare-repository = "https://team-xquare.github.io/k8s-resource"
argocd-name = "argocd"
argocd-verison = "4.8.20"
aws-node-termination-handler-name = "aws-node-termination-handler"
aws-node-termination-handler-version = "0.22.10"
cert-manager-name = "cert-manager"
cert-manager-version = "v1.12.14"
istio-name = "istio"
istio-version = "1.0.50"
karpenter-name = "karpenter"
karpenter-version = "1.0.65"
xquare-application-name = "xquare-application"
xquare-application-version = "1.0.65"
argocd-namespace = "argocd"
dex-namespace = "dex"
monitoring-namespace = "monitoring"
kube-system-namespace = "kube-system"
karpenter-namespace = "karpenter"
spot-handler-namespace = "spot-handler"
cert-manager-namespace = "cert-manager"
istio-namespace = "istio-system"
// Datadog
datadog-name = "datadog-operator"
datadog-version = "1.0.8"
datadog-namespace = "datadog"
vault-name = "vault"
vault-version = "1.0.10"
vault-namespace = "vault"
}
module "argocd" {
source = "./modules/helm"
name = local.argocd-name
namespace = local.argocd-namespace
repository = local.xquare-repository
chart = local.argocd-name
chart_version = local.argocd-verison
}
module "cert-manager" {
source = "./modules/helm"
name = local.cert-manager-name
namespace = local.cert-manager-namespace
repository = local.xquare-repository
chart = local.cert-manager-name
chart_version = local.cert-manager-version
}
module "istio" {
source = "./modules/helm"
name = local.istio-name
namespace = local.istio-namespace
repository = local.xquare-repository
chart = local.istio-name
chart_version = local.istio-version
}
module "xquare-application" {
source = "./modules/helm"
name = local.xquare-application-name
namespace = local.argocd-namespace
repository = local.xquare-repository
chart = local.xquare-application-name
chart_version = local.xquare-application-version
}
module "karpenter" {
source = "./modules/karpenter"
namespace = local.karpenter-namespace
repository = local.xquare-repository
chart = local.karpenter-name
chart_version = local.karpenter-version
cluster_name = module.eksv2.cluster_name
irsa_oidc_provider_arn = module.eksv2.oidc_provider_arn
iam_role_arn = module.eksv2.iam_role_arn
cluster_endpoint = module.eksv2.cluster_endpoint
}
#module "datadog" {
# source = "./modules/helm"
# name = local.datadog-name
# namespace = local.datadog-namespace
# repository = local.xquare-repository
# chart = local.datadog-name
# chart_version = local.datadog-version
#}