-
Notifications
You must be signed in to change notification settings - Fork 2
/
helm-controller-deployment.yaml.tf
118 lines (117 loc) · 3.42 KB
/
helm-controller-deployment.yaml.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
107
108
109
110
111
112
113
114
115
116
117
118
resource "kubernetes_manifest" "deployment_helm_controller" {
provider = kubernetes-alpha
manifest = {
"apiVersion" = "apps/v1"
"kind" = "Deployment"
"metadata" = {
"labels" = {
"app.kubernetes.io/instance" = kubernetes_manifest.namespace_flux_system.object.metadata.name
"app.kubernetes.io/version" = var.flux_version
"control-plane" = "controller"
}
"name" = "helm-controller"
"namespace" = kubernetes_manifest.namespace_flux_system.object.metadata.name
}
"spec" = {
"replicas" = 1
"selector" = {
"matchLabels" = {
"app" = "helm-controller"
}
}
"template" = {
"metadata" = {
"annotations" = {
"prometheus.io/port" = "8080"
"prometheus.io/scrape" = "true"
}
"labels" = {
"app" = "helm-controller"
}
}
"spec" = {
"containers" = [
{
"args" = [
"--events-addr=http://notification-controller/",
"--watch-all-namespaces=${var.watch_all_namespaces}",
var.log_level,
"--log-encoding=json",
"--enable-leader-election",
]
"env" = [
{
"name" = "RUNTIME_NAMESPACE"
"valueFrom" = {
"fieldRef" = {
"fieldPath" = "metadata.namespace"
}
}
},
]
"image" = "${var.registry}/helm-controller:v0.8.0"
"imagePullPolicy" = "IfNotPresent"
"livenessProbe" = {
"httpGet" = {
"path" = "/healthz"
"port" = "healthz"
}
}
"name" = "manager"
"ports" = [
{
"containerPort" = 9440
"name" = "healthz"
"protocol" = "TCP"
},
{
"containerPort" = 8080
"name" = "http-prom"
#protocol absent from manifest but required by TF
"protocol" = "TCP"
},
]
"readinessProbe" = {
"httpGet" = {
"path" = "/readyz"
"port" = "healthz"
}
}
"resources" = {
"limits" = {
"cpu" = "1"
"memory" = "1Gi"
}
"requests" = {
"cpu" = "100m"
"memory" = "64Mi"
}
}
"securityContext" = {
"allowPrivilegeEscalation" = false
"readOnlyRootFilesystem" = true
}
"volumeMounts" = [
{
"mountPath" = "/tmp"
"name" = "temp"
},
]
},
]
"nodeSelector" = {
"kubernetes.io/os" = "linux"
}
"serviceAccountName" = "helm-controller"
"terminationGracePeriodSeconds" = 600
"volumes" = [
{
"emptyDir" = {}
"name" = "temp"
},
]
}
}
}
}
}