-
Notifications
You must be signed in to change notification settings - Fork 0
/
skaffold.yaml
45 lines (45 loc) · 1.18 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
apiVersion: skaffold/v2alpha1
kind: Config
metadata:
name: micro-example
build:
artifacts:
- image: greeter/producer
custom:
buildCommand: make containerize SERVICE_DIR=cmd/greeter
dependencies:
paths:
- ./cmd/greeter
# - ./pkg
- ./internal
- ./proto
- image: greeter/go-micro-consumer
custom:
buildCommand: make containerize SERVICE_DIR=cmd/consumers/go-micro
dependencies:
paths:
- ./cmd/consumers/go-micro
# - ./pkg
- ./internal
- ./proto
- image: greeter/watermill-consumer
custom:
buildCommand: make containerize SERVICE_DIR=cmd/consumers/watermill
dependencies:
paths:
- ./cmd/consumers/watermill
# - ./pkg
- ./internal
- ./proto
deploy:
kubectl:
manifests:
- cluster/namespace.yaml
- cluster/zookeeper/*.yaml
- cluster/kafka/*.yaml
- cluster/kafka-manager/*.yml
- cluster/cassandra/*.yaml
#- cluster/kafka-monitor/*.yml // doesn't seem to work
- cmd/greeter/k8s/local.yaml
- cmd/consumers/go-micro/k8s/local.yaml
- cmd/consumers/watermill/k8s/local.yaml