-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathskaffold.yaml
209 lines (204 loc) · 6.2 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
apiVersion: skaffold/v2beta27
kind: Config
metadata:
name: apps
requires:
- configs: ["infrastructure"]
build:
artifacts:
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/api-js
context: api
docker: {}
# - image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/counter
# context: scanners/counter
# docker: {}
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/database-migration
context: database-migration
docker: {}
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/dmarc-report
context: services/dmarc-report
docker: {}
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/dns-processor
context: scanners/dns-processor
docker: {}
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/dns-scanner
context: scanners/dns-scanner
docker: {}
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/domain-dispatcher
context: scanners/domain-dispatcher
docker: {}
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/frontend
context: frontend
docker: {}
# - image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/https-processor
# context: scanners/https-processor
# docker: {}
# - image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/https-scanner
# context: scanners/https-scanner
# docker: {}
# - image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/log4shell-processor
# context: scanners/log4shell-processor
# docker: {}
# - image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/log4shell-scanner
# context: scanners/log4shell-scanner
# docker: {}
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/services/guidance
context: services/guidance
docker: {}
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/services/summaries
context: services/summaries
docker: {}
# - image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/spring4shell-scanner
# context: scanners/spring4shell
# docker: {}
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/super-admin
context: services/super-admin
docker: {}
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/web-processor
context: scanners/web-processor
docker: {}
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/web-scanner
context: scanners/web-scanner
docker: {}
#deploy:
# kubeContext: minikube
# kustomize:
# paths:
# - k8s/apps/overlays/minikube
# - k8s/apps/bases/api/creds
# - k8s/apps/bases/scanners/dmarc-report-cronjob/creds
# - k8s/apps/bases/scanners/scanner-platform/creds
profiles:
- name: gke
deploy:
kustomize:
paths:
- k8s/apps/overlays/gke
- name: minikube
deploy:
kubeContext: minikube
kustomize:
paths:
- k8s/apps/overlays/minikube
- k8s/apps/bases/api/creds
- k8s/apps/bases/scanners/dmarc-report-cronjob/creds
- k8s/apps/bases/scanners/scanner-platform/creds
- name: production
deploy:
kustomize:
paths:
- k8s/apps/overlays/production
- name: staging
deploy:
kustomize:
paths:
- k8s/apps/overlays/staging
- name: test
deploy:
kubeContext: gke_track-compliance_northamerica-northeast1_test
kustomize:
paths:
- k8s/apps/overlays/test
- k8s/apps/bases/api/creds
- k8s/apps/bases/scanners/dmarc-report-cronjob/creds
- k8s/apps/bases/scanners/scanner-platform/creds
portForward:
- resourceType: service
resourceName: istio-ingressgateway
namespace: istio-system
port: 80
localPort: 30080
- resourceType: service
resourceName: istio-ingressgateway
namespace: istio-system
port: 443
localPort: 30443
---
apiVersion: skaffold/v2beta27
kind: Config
metadata:
name: infrastructure-platform
deploy:
kubectl:
flags:
delete: [ "-l app!=arangodb" ]
hooks:
before:
- host:
command: [ "kubectl", "apply", "-k", "./k8s/infrastructure/bases/arangodb/platform" ]
- host:
command: [ "kubectl", "apply", "-k", "./k8s/infrastructure/bases/cert-manager/platform" ]
- host:
command: [ "kubectl", "apply", "-k", "./k8s/infrastructure/bases/istio/platform" ]
manifests: [ "k8s/*.yaml" ]
---
apiVersion: skaffold/v2beta27
kind: Config
metadata:
name: infrastructure
requires:
- configs: ["infrastructure-platform"]
#deploy:
# kubeContext: minikube
# kustomize:
# flags:
# delete: [ "-l app!=arangodb" ]
# paths:
# - k8s/infrastructure/overlays/minikube
# - k8s/infrastructure/bases/arangodb/creds
profiles:
- name: gke
deploy:
kustomize:
flags:
delete: [ "-l app!=arangodb" ]
paths:
- k8s/infrastructure/overlays/gke
- name: minikube
deploy:
kubeContext: minikube
kustomize:
flags:
delete: [ "-l app!=arangodb" ]
paths:
- k8s/infrastructure/overlays/minikube
- k8s/infrastructure/bases/arangodb/creds
- name: production
deploy:
kustomize:
flags:
delete: [ "-l app!=arangodb" ]
paths:
- k8s/infrastructure/overlays/production
- name: staging
deploy:
kustomize:
flags:
delete: [ "-l app!=arangodb" ]
paths:
- k8s/infrastructure/overlays/staging
- name: test
deploy:
kubeContext: gke_track-compliance_northamerica-northeast1_test
kustomize:
flags:
delete: [ "-l app!=arangodb" ]
paths:
- k8s/infrastructure/overlays/test
- k8s/infrastructure/bases/arangodb/creds
portForward:
- resourceType: service
resourceName: arangodb
namespace: db
port: 8529
localPort: 8529
- resourceType: service
resourceName: nats
namespace: pubsub
port: 4222
localPort: 4222
# - resourceType: service
# resourceName: kiali
# namespace: istio-system
# port: 20001
# localPort: 20001