-
Notifications
You must be signed in to change notification settings - Fork 3
/
go-hello-world.tf
81 lines (63 loc) · 1.31 KB
/
go-hello-world.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
resource "google_cloudbuild_trigger" "go_app" {
provider = google-beta
name = "go-hello-world-build-deploy"
github {
owner = "evry-ace"
name = "kubernetes-on-air"
push {
branch = "master"
}
}
included_files = ["apps/hello-world/**"]
substitutions = {
_FOO = "bar"
_BAZ = "qux"
}
filename = "apps/hello-world/cloudbuild.yaml"
}
resource "helm_release" "go_app" {
name = "go-hello-world"
chart = "./charts/go-hello-world"
timeout = 600
depends_on = [google_container_node_pool.apps]
set {
name = "image.repository"
value = "eu.gcr.io/evry-flaatten/go-hello-world"
}
set {
name = "image.tag"
value = "latest"
}
set {
name = "service.type"
value = "NodePort"
}
set {
name = "ingress.enabled"
value = true
}
set {
name = "ingress.annotations.cert-manager\\.io/cluster-issuer"
value = "letsencrypt"
}
set {
name = "ingress.annotations.kubernetes\\.io/tls-acme"
value = "true"
}
set {
name = "ingress.hosts[0].name"
value = "go-app.tietoevry.site"
}
set {
name = "ingress.hosts[0].paths[0]"
value = "/*"
}
set {
name = "ingress.tls[0].secretName"
value = "go-app-tls"
}
set {
name = "ingress.tls[0].hosts[0]"
value = "go-app.tietoevry.site"
}
}