-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_waf_flask.yml
47 lines (46 loc) · 1.05 KB
/
custom_waf_flask.yml
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
kind: Deployment
apiVersion: apps/v1
metadata:
name: waf-generator-flask
labels:
app: waf-generator-flask
annotations:
ves.io/sites: ves-io-system/sg3-sin
spec:
replicas: 1
selector:
matchLabels:
app: waf-generator-flask
template:
metadata:
labels:
app: waf-generator-flask
spec:
containers:
- name: waf-generator-flask
image: registry.gitlab.com/sbmmsra/waf-signature-generator:latest
ports:
- containerPort: 8000
name: waf-generator
command:
- tail ls /home/siggen/custom_waf_generator/
livenessProbe:
exec:
command:
- cat
- /etc/hosts
initialDelaySeconds: 20
periodSeconds: 20
---
kind: Service
apiVersion: v1
metadata:
name: waf-generator-flask
spec:
ports:
- protocol: TCP
port: 8000
targetPort: waf-generator
selector:
app: waf-generator-flask
sessionAffinity: None