-
Notifications
You must be signed in to change notification settings - Fork 2
/
skaffold.yaml
51 lines (51 loc) · 1.05 KB
/
skaffold.yaml
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
apiVersion: skaffold/v2beta9
kind: Config
metadata:
name: todo-app-skaffold
build:
artifacts:
- image: todo
docker:
dockerfile: cmd/todo-service/Dockerfile
sync:
infer: []
- image: goose
docker:
dockerfile: cmd/goose/Dockerfile
- image: apidoc
docker:
dockerfile: api-spec/Dockerfile
local:
useBuildkit: true
deploy:
statusCheckDeadlineSeconds: 300
portForward:
- resourceType: service
resourceName: todo
port: 80
localPort: 8080
- resourceType: service
resourceName: apidoc
port: 80
localPort: 9000
- resourceType: service
resourceName: postgres
port: 5432
profiles:
- name: local
activation:
- command: debug
- command: dev
- command: run
deploy:
kubeContext: kind-local
kustomize:
paths:
- ops/overlays/local
- name: build-dev
activation:
- command: dev
patches:
- op: replace
path: /build/artifacts/0/docker/dockerfile
value: cmd/todo-service/Dockerfile.dev