forked from project-octal/terraform-kubernetes-argocd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
argocd-main.tf
99 lines (77 loc) · 3.41 KB
/
argocd-main.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
module "argocd_redis" {
source = "./argocd-redis"
namespace = kubernetes_namespace.argocd_namespace.metadata.0.name
image_pull_policy = var.image_pull_policy
labels = local.labels
pod_affinity_topology_key = var.pod_affinity_topology_key
enable_ha_redis = var.enable_ha_redis
haproxy_image_name = var.haproxy_image_name
haproxy_image_tag = var.haproxy_image_tag
haproxy_image_repository = var.haproxy_image_repository
redis_image_name = var.redis_image_name
redis_image_tag = var.redis_image_tag
redis_image_repository = var.redis_image_repository
}
module "argocd_repo_server" {
source = "./argocd-repo-server"
namespace = kubernetes_namespace.argocd_namespace.metadata.0.name
image_pull_policy = var.image_pull_policy
labels = local.labels
image_tag = var.argocd_image_tag
image_name = var.argocd_image_name
image_repository = var.argocd_image_repository
replicas = var.argocd_repo_replicas
redis_address = module.argocd_redis.redis_address
redis_port = module.argocd_redis.redis_port
cpu_request = local.argocd_repo_requests_cpu
memory_request = local.argocd_repo_requests_memory
cpu_limit = local.argocd_repo_limits_cpu
memory_limit = local.argocd_repo_limits_memory
exec_timeout = var.repo_server_exec_timeout
}
module "argocd_server" {
source = "./argocd-server"
namespace = kubernetes_namespace.argocd_namespace.metadata.0.name
image_pull_policy = var.image_pull_policy
labels = local.labels
image_tag = var.argocd_image_tag
image_name = var.argocd_image_name
image_repository = var.argocd_image_repository
cpu_request = local.argocd_server_requests_cpu
memory_request = local.argocd_server_requests_memory
cpu_limit = local.argocd_server_limits_cpu
memory_limit = local.argocd_server_limits_memory
replicas = var.argocd_server_replicas
redis_address = module.argocd_redis.redis_address
redis_port = module.argocd_redis.redis_port
ingress_enabled = var.ingress_enabled
ingress_host = var.ingress_host
ingress_path = var.ingress_path
ingress_class_name = var.ingress_class_name
ingress_annotations = var.ingress_annotations
ingress_cert_issuer_annotation = var.ingress_cert_issuer_annotation
}
module "argocd_application_controller" {
source = "./argocd-application-controller"
namespace = kubernetes_namespace.argocd_namespace.metadata.0.name
image_pull_policy = var.image_pull_policy
labels = local.labels
argocd_version = var.argocd_image_tag
argocd_image = var.argocd_image_name
image_repository = var.argocd_image_repository
redis_address = module.argocd_redis.redis_address
redis_port = module.argocd_redis.redis_port
}
module "argocd_dex" {
source = "./argocd-dex"
count = var.enable_dex ? 1 : 0
namespace = kubernetes_namespace.argocd_namespace.metadata.0.name
image_pull_policy = var.image_pull_policy
labels = local.labels
argocd_image_tag = var.argocd_image_tag
argocd_image_name = var.argocd_image_name
argocd_image_repository = var.argocd_image_repository
dex_image_tag = var.dex_image_tag
dex_image_name = var.dex_image_name
dex_image_repository = var.dex_image_repository
}