-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodules-ingress-dev.tf
77 lines (57 loc) · 2.29 KB
/
modules-ingress-dev.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
#########################################################
#TODO: think about sharing snapshots for apiread-nodes in the test env
############common service external##########################
module "ingress-kong_monitoring-80" {
count = local.is_dev_envs
source = "../modules/k8s_ingress"
get_global_configuration = local.make_global_configuration
get_ingress_http_path = "/"
get_ingress_backend_service_name = "monitoring-grafana"
get_ingress_pathType = "Prefix"
as_is_ingress_backend_service_name = true // if value is false then the "-service" string will be added automatically
get_ingress_backend_service_port = 80
get_ingress_namespace = kubernetes_namespace_v1.monitoring.metadata[0].name
get_rule_host = "monitoring.dev.node.glif.io"
is_kong_auth_header_enabled = false
is_kong_transformer_header_enabled = false
type_lb_scheme = "external"
}
module "ingress_api_read_dev" {
count = local.is_dev_envs
name = "wss-read-dev"
source = "../modules/ovh_ingress"
namespace = "network"
http_host = "wss.dev.node.glif.io"
http_path = "/"
http_path_type = "Prefix"
service_name = "api-read-dev-lotus-service"
service_port = 2346
ingress_class = "kong-external-lb"
secret_name = data.aws_secretsmanager_secret.api_read_dev_lotus[0].name
enable_path_transformer = false
enable_access_control = true
access_control_public = true
access_control_replace = true
enable_return_json = true
enable_limit_reqs_wo_header = true
enable_ext_token_auth = true
}
module "ingress_auth_dev" {
count = local.is_dev_envs
name = "auth-dev"
source = "../modules/ovh_ingress"
namespace = "default"
http_host = "auth.dev.node.glif.io"
http_path = "/"
http_path_type = "Prefix"
service_name = "glif-auth-app-svc"
service_port = 3000
ingress_class = "kong-external-lb"
enable_path_transformer = false
enable_access_control = false
enable_return_json = false
enable_cors = false
enable_redirect = true
redirect_location = "https://api.dev.node.glif.io/"
}
#############################################################