-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwaypoint.hcl
63 lines (54 loc) · 1.24 KB
/
waypoint.hcl
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
project = "todo-test"
app "todo-test" {
config {
internal = {
team-name = "panther"
app-name = "todo-test"
}
env = {
"PGHOST" = "${config.internal.app-name}-postgresql.${config.internal.team-name}.svc.cluster.local"
DATABASE_PASSWORD = dynamic("kubernetes", {
namespace = "${config.internal.team-name}"
name = "${config.internal.app-name}-postgresql.${config.internal.team-name}.credentials"
key = "password"
secret = true
})
}
workspace "dev" {
config = {
replicas = 1
}
}
workspace "prod" {
config = {
replicas = 1
}
}
}
labels = {
"service" = "${config.internal.app-name}",
"env" = [workspace.name]
"owner" = "${config.internal.team-name}"
}
build {
use "docker" {}
registry {
use "docker" {
# Replace with your docker image name (i.e. registry.hub.docker.com/library/go-k8s)
image = "syntassodev/${config.internal.app-name}"
tag = [workspace.name]
local = true
}
}
}
deploy {
use "kubernetes" {
probe_path = "/"
service_port = 8080
replicas = ${config.replicas}
}
}
release {
use "kubernetes" {}
}
}