-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.txt
297 lines (296 loc) · 7.51 KB
/
test.txt
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
NAME: kubestriker
LAST DEPLOYED: Wed May 5 14:18:46 2021
NAMESPACE: smp-dev-di1001
STATUS: pending-install
REVISION: 1
TEST SUITE: None
HOOKS:
MANIFEST:
---
# Source: kubestriker/templates/db-service.yaml
apiVersion: v1
kind: Service
metadata:
name: db-service
labels:
name: kubestriker
app: kubestriker
spec:
type: ClusterIP
ports:
- port: 8000
targetPort: 8000
protocol: TCP
name:
selector:
app: kubestriker
component: database
---
# Source: kubestriker/templates/fe-service.yaml
apiVersion: v1
kind: Service
metadata:
name: fe-svc
labels:
name: kubestriker
app: kubestriker-fe
component: frontend-server
spec:
type: LoadBalancer
ports:
- port: 8080
targetPort: 80
protocol: TCP
name: ks-fe-svc
selector:
app: kubestriker-fe}
component: frontend-server
---
# Source: kubestriker/templates/python-service.yaml
apiVersion: v1
kind: Service
metadata:
name: python-svc
labels:
name: kubestriker
app: kubestriker
component: server
spec:
type: ClusterIP
ports:
- port: 8888
targetPort: 8888
protocol: TCP
name: python-svc
selector:
app: kubestriker
component: server
---
# Source: kubestriker/templates/db-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: kubestriker-db
labels:
release: kubestriker
app: kubestriker
component: database
spec:
replicas: 1
selector:
matchLabels:
release: kubestriker
app: kubestriker
component: database
hasDNS: "true"
template:
metadata:
labels:
release: kubestriker
app: kubestriker
component: database
hasDNS: "true"
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: kubestriker
release: kubestriker
component: database
topologyKey: kubernetes.io/hostname
terminationGracePeriodSeconds: 60
volumes:
- name: kubestriker-db-storage
emptyDir: {}
containers:
- name: kubestriker-db
image: "amazon/dynamodb-local:latest"
imagePullPolicy: IfNotPresent
env:
- name: ADVERTISE_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NAMSESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: DYNAMODB_ACCESS_KEY_ID
value: anything
- name: DYNAMODB_ACCESS_KEY
value: anything
- name: DYNAMODB_REGION
value: ap-southeast-2
ports:
- name: db-service
containerPort: 8000
protocol: TCP
volumeMounts:
- name: kubestriker-db-storage
mountPath: /data
subPath: data
---
# Source: kubestriker/templates/fe-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: fe-svc
labels:
release: kubestriker
app: kubestriker
component: frontend-server
spec:
replicas: 1
selector:
matchLabels:
release: kubestriker
app: kubestriker
component: frontend-server
template:
metadata:
labels:
release: kubestriker
app: kubestriker
component: frontend-server
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: kubestriker
release: kubestriker
component: frontend-server
topologyKey: kubernetes.io/hostname
terminationGracePeriodSeconds: 60
volumes:
- name: kubestriker-python-storage
emptyDir: {}
containers:
- name: kubestriker-fe
image: "cloudsecguy/kubestrikerfe:env3"
imagePullPolicy: IfNotPresent
env:
- name: ADVERTISE_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NAMSESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: API_URL
value: http://a805ccee0d51e407883d704b6e684dd2-1053467523.ap-southeast-2.elb.amazonaws.com/
ports:
- name: fe-svc
containerPort: 80
protocol: TCP
- name: python-server
containerPort: 8888
protocol: TCP
volumeMounts:
- name: kubestriker-python-storage
mountPath: /data
subPath: data
---
# Source: kubestriker/templates/python-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: kubestriker-python
labels:
release: kubestriker
app: kubestriker
component: server
spec:
replicas: 1
selector:
matchLabels:
release: kubestriker
app: kubestriker
component: server
template:
metadata:
labels:
release: kubestriker
app: kubestriker
component: server
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: kubestriker
release: kubestriker
component: server
topologyKey: kubernetes.io/hostname
terminationGracePeriodSeconds: 60
volumes:
- name: kubestriker-python-storage
emptyDir: {}
containers:
- name: kubestriker-python
image: ""
imagePullPolicy: IfNotPresent
env:
- name: ADVERTISE_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NAMSESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: DYNAMODB_URL
value: http://$(DB_SERVICE_NEW_SERVICE_HOST):$(DB_SERVICE_NEW_SERVICE_PORT)
- name: DYNAMODB_ACCESS_KEY_ID
value: anything
- name: DYNAMODB_ACCESS_KEY
value: anything
- name: DYNAMODB_REGION
value: ap-southeast-2
ports:
- name: python-svc
containerPort: 8888
protocol: TCP
- name: db-expose
containerPort: 8000
protocol: TCP
volumeMounts:
- name: kubestriker-python-storage
mountPath: /data
subPath: data
---
# Source: kubestriker/templates/backend-ingress.yaml
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: backend-ingress
annotations:
nginx.ingress.kubernetes.io/cors-allow-credentials: "true"
nginx.ingress.kubernetes.io/cors-allow-methods: GET, PUT, POST, DELETE, PATCH, OPTIONS
nginx.ingress.kubernetes.io/cors-allow-origin: '*'
nginx.ingress.kubernetes.io/enable-cors: "true"
spec:
rules:
- http:
paths:
- path: /
backend:
serviceName: python-svc
servicePort: 8888