-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.tf
51 lines (47 loc) · 1.18 KB
/
deployment.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
resource "kubernetes_deployment" "gke_oom_killed_monitoring" {
metadata {
name = "gke-oom-monitoring-${random_string.random.result}"
namespace = var.namespace
labels = {
app = "gke-oom-monitoring-${random_string.random.result}"
}
}
spec {
replicas = 1
selector {
match_labels = {
app = "gke-oom-monitoring-${random_string.random.result}"
}
}
template {
metadata {
labels = {
app = "gke-oom-monitoring-${random_string.random.result}"
}
}
spec {
service_account_name = "gke-oom-monitoring-${random_string.random.result}"
container {
image = "ackee/gke_oom_monitoring:${var.docker_tag}"
name = "gke-oom-monitoring-${random_string.random.result}"
env {
name = "NAMESPACE"
value = var.namespace
}
env {
name = "PROJECT_ID"
value = var.project
}
env {
name = "LOCATION"
value = var.location
}
env {
name = "CLUSTER_NAME"
value = var.cluster_name
}
}
}
}
}
}