-
-
Notifications
You must be signed in to change notification settings - Fork 137
/
helm-maildev.tf
42 lines (40 loc) · 1.11 KB
/
helm-maildev.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
resource "helm_release" "maildev" {
name = "maildev"
chart = "./helm/charts/microservice"
namespace = kubernetes_namespace.main.metadata[0].name
values = [
<<-EOF
podLabels:
${chomp(indent(2, yamlencode(local.labels)))}
podAnnotations:
${chomp(indent(2, yamlencode(merge(local.annotations, {
"go-api-boilerplate.local/role" = "api"
"go-api-boilerplate.local/project" = "maildev-api-go"
}))))}
nameOverride: maildev
image:
repository: maildev/maildev
tag: 2.0.0-beta3
pullPolicy: IfNotPresent
service:
ports:
- name: maildev
internalPort: 1025
externalPort: 1025
- name: ui
internalPort: 1080
externalPort: 1080
env:
- name: MAILDEV_INCOMING_USER
valueFrom:
secretKeyRef:
key: MAILER_USER
name: ${kubernetes_secret.config.metadata.0.name}
- name: MAILDEV_INCOMING_PASS
valueFrom:
secretKeyRef:
key: MAILER_PASSWORD
name: ${kubernetes_secret.config.metadata.0.name}
EOF
]
}