This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskaffold.yaml
73 lines (68 loc) · 2.04 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
apiVersion: skaffold/v1beta13
kind: Config
profiles:
- name: dev
build:
artifacts:
- image: k8s-skaffold-backend
context: backend
docker:
target: development
sync: # Local files synced to pods instead of triggering an image build when modified.
manual: # Manual sync rules indicating the relative source and destination.
- src: src/*.py # A glob pattern to match local paths against. Directories should be delimited by / on all platforms.
dest: . # Destination path in the container where the files should be synced to.
- image: k8s-skaffold-frontend
context: frontend
docker:
dockerfile: Dockerfile.dev
sync:
manual:
- src: src/components/*.js
dest: .
deploy:
kubectl:
manifests:
- backend/k8s/*.yaml
- frontend/k8s/*.yaml
- name: prod
build:
artifacts:
- image: k8s-skaffold-backend
context: backend
- image: k8s-skaffold-frontend
context: frontend
deploy:
helm:
releases:
- name: frontend
chartPath: frontend/chart
values:
image: k8s-skaffold-frontend
overrides:
backendUrl: http://k8s-skaffold-backend.local
service:
type: NodePort
port: 80
ingress:
enabled: true
annotations:
ingress.kubernetes.io/rewrite-target: /
hosts:
- host: k8s-skaffold-frontend.local
paths: [/]
- name: backend
chartPath: backend/chart
values:
image: k8s-skaffold-backend
overrides:
service:
type: NodePort
port: 80
ingress:
enabled: true
annotations:
ingress.kubernetes.io/rewrite-target: /
hosts:
- host: k8s-skaffold-backend.local
paths: [/]