This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
skaffold.yaml
104 lines (104 loc) · 3.33 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
apiVersion: skaffold/v4beta11
kind: Config
metadata:
name: serveralpha
build:
artifacts:
- image: apigateway
context: src/api-gateway
docker:
dockerfile: Dockerfile
- image: chatservice
context: src/chat-service
docker:
dockerfile: Dockerfile
- image: postservice
context: src/post-service
docker:
dockerfile: Dockerfile
- image: userservice
context: src/user-service
docker:
dockerfile: Dockerfile
- image: notificationservice
context: src/notification-service
docker:
dockerfile: Dockerfile
- image: imageservice
context: src/image-service
docker:
dockerfile: Dockerfile
local:
useBuildkit: true
concurrency: 4
deploy:
helm:
releases:
- name: alpha-release
namespace: default
skipBuildDependencies: false
chartPath: ./helm/alpha-chart
valuesFiles:
- ./helm/alpha-chart/values-dev.yaml
portForward:
- resourceType: service
resourceName: alpha-release-api-gateway
namespace: default
port: 8080
localPort: 8080
- resourceType: service
resourceName: alpha-release-postgresql
namespace: default
port: 5432
localPort: 5432
- resourceType: service
resourceName: alpha-release-jaeger-query
namespace: default
port: 16686
localPort: 16686
- resourceType: service
resourceName: alpha-release-grafana
namespace: default
port: 80
localPort: 3000
profiles:
- name: dev
activation:
- command: dev
build:
local:
push: false
deploy:
helm:
releases:
- name: alpha-release
namespace: default
skipBuildDependencies: true
chartPath: ./helm/alpha-chart
valuesFiles:
- ./helm/alpha-chart/values-dev.yaml
setValueTemplates:
services.api-gateway.image.repository: "{{.IMAGE_REPO_apigateway}}"
services.api-gateway.image.tag: "{{.IMAGE_TAG_apigateway}}@{{.IMAGE_DIGEST_apigateway}}"
services.chat-service.image.repository: "{{.IMAGE_REPO_chatservice}}"
services.chat-service.image.tag: "{{.IMAGE_TAG_chatservice}}@{{.IMAGE_DIGEST_chatservice}}"
services.post-service.image.repository: "{{.IMAGE_REPO_postservice}}"
services.post-service.image.tag: "{{.IMAGE_TAG_postservice}}@{{.IMAGE_DIGEST_postservice}}"
services.user-service.image.repository: "{{.IMAGE_REPO_userservice}}"
services.user-service.image.tag: "{{.IMAGE_TAG_userservice}}@{{.IMAGE_DIGEST_userservice}}"
services.notification-service.image.repository: "{{.IMAGE_REPO_notificationservice}}"
services.notification-service.image.tag: "{{.IMAGE_TAG_notificationservice}}@{{.IMAGE_DIGEST_notificationservice}}"
services.image-service.image.repository: "{{.IMAGE_REPO_imageservice}}"
services.image-service.image.tag: "{{.IMAGE_TAG_imageservice}}@{{.IMAGE_DIGEST_imageservice}}"
setValues:
global.image.pullPolicy: "IfNotPresent"
- name: prod
activation:
- command: deploy
build:
local:
push: true
patches:
- op: replace
path: /deploy/helm/releases/0/valuesFiles/0
value: ./helm/alpha-chart/values-prod.yaml