-
Notifications
You must be signed in to change notification settings - Fork 218
/
skaffold.yaml
109 lines (108 loc) · 3.14 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
105
106
107
108
109
apiVersion: skaffold/v2beta28
kind: Config
metadata:
name: simple-microservice
build:
tagPolicy:
customTemplate:
template: "{{.DATE}}_{{.GIT}}"
components:
- name: DATE
dateTime:
format: "2006-01-02"
timezone: "UTC"
- name: GIT
gitCommit:
variant: AbbrevCommitSha
artifacts:
- image: asia.gcr.io/devops-learning-347802/coit-backend1
context: coit-backend1
docker:
dockerfile: Dockerfile-multistage
- image: asia.gcr.io/devops-learning-347802/coit-backend2
context: coit-backend2
docker:
dockerfile: Dockerfile
- image: asia.gcr.io/devops-learning-347802/coit-frontend
context: coit-frontend
docker:
dockerfile: Dockerfile-multistage
local:
push: true
deploy:
kubectl:
manifests:
- resource-manifests/coit-backend1-deployment.yaml
- resource-manifests/coit-backend2-deployment.yaml
- resource-manifests/coit-frontend-deployment.yaml
- resource-manifests/service-coit-backend1-lb.yaml
- resource-manifests/service-coit-backend2.yaml
- resource-manifests/service-coit-frontend-lb.yaml
profiles:
- name: dev
activation:
- env: CURRENTENV=dev
build:
artifacts:
- image: coit-backend1
context: coit-backend1
docker:
dockerfile: Dockerfile
- image: coit-backend2
context: coit-backend2
docker:
dockerfile: Dockerfile
- image: coit-frontend
context: coit-frontend
docker:
dockerfile: Dockerfile
local:
push: true
deploy:
kubeContext: arn:aws:eks:ap-south-1:210607809234:cluster/aws-mumbai-all
kubectl:
manifests:
- resource-manifests/coit-backend1-deployment.yaml
- resource-manifests/coit-backend2-deployment.yaml
- resource-manifests/coit-frontend-deployment.yaml
- resource-manifests/service-coit-backend1-lb.yaml
- resource-manifests/service-coit-backend2.yaml
- resource-manifests/service-coit-frontend-lb.yaml
- name: production
activation:
- env: CURRENTENV=prod
build:
artifacts:
- image: coit-backend1
context: coit-backend1
docker:
dockerfile: Dockerfile
- image: coit-backend2
context: coit-backend2
docker:
dockerfile: Dockerfile
- image: coit-frontend
context: coit-frontend
docker:
dockerfile: Dockerfile
local:
push: true
deploy:
kubeContext: arn:aws:eks:ap-south-1:210607809234:cluster/aws-mumbai-all
kubectl:
manifests:
- resource-manifests/coit-backend1-deployment.yaml
- resource-manifests/coit-backend2-deployment.yaml
- resource-manifests/coit-frontend-deployment.yaml
- resource-manifests/service-coit-backend1-lb.yaml
- resource-manifests/service-coit-backend2.yaml
- resource-manifests/service-coit-frontend-lb.yaml
portForward:
- resourceType: service
resourceName: coit-frontend-lb
port: 80
localPort: 4500 # *Optional*
- resourceType: service
resourceName: coit-backend1-lb
port: 80
localPort: 4600 # *Optional*