-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheck_operator.tf
50 lines (41 loc) · 1.21 KB
/
eck_operator.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
###########################################################
# ECK Operator
###########################################################
# Orchestrate Elasticsearch, Kibana, APM Server, Enterprise
# Search, and Beats on Kubernetes
###########################################################
##
## ECK Operator
##
resource "kubernetes_namespace" "eck_operator_system" {
metadata {
name = "eck-operator-system"
labels = {
"istio-injection" = "enabled"
"namespace.statcan.gc.ca/purpose" = "daaas"
}
}
}
module "namespace_eck_operator_system" {
source = "git::https://github.com/canada-ca-terraform-modules/terraform-kubernetes-namespace.git?ref=v2.2.0"
name = kubernetes_namespace.eck_operator_system.id
namespace_admins = {
users = []
groups = ["XXXX"]
}
# CI/CD
ci_name = "ci"
# Image Pull Secret
enable_kubernetes_secret = 0
# Dependencies
dependencies = []
}
##
## Deploy ECK Operator and Instances
##
module "eck_operator" {
source = "git::https://github.com/StatCan/terraform-kubernetes-elastic-cloud.git?ref=v2.x"
chart_version = "1.6.0"
helm_repository = "https://helm.elastic.co"
helm_namespace = kubernetes_namespace.eck_operator_system.id
}