-
Notifications
You must be signed in to change notification settings - Fork 1
/
sfc-stress.yaml
72 lines (71 loc) · 1.51 KB
/
sfc-stress.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: sfc-stress
labels:
app: sfc-stress
spec:
replicas: 1
selector:
matchLabels:
app: sfc-stress
template:
metadata:
labels:
app: sfc-stress
spec:
containers:
- name: sfc-stress
image: michelgokan/sfc-stress
env:
- name: NEXT_SERVICES_ADDRESSES #comma separated
value: ""
- name: NAME
value: "<NO NAME>" #set service name here
ports:
- containerPort: 30005
readinessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 5
timeoutSeconds: 1
---
apiVersion: v1
kind: Service
metadata:
name: sfc-stress
labels:
app: sfc-stress
spec:
ports:
- port: 30005
targetPort: 30005
protocol: TCP
name: http
selector:
app: sfc-stress
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: sfc-stress
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/force-ssl-redirect: "false"
nginx.ingress.kubernetes.io/proxy-body-size: "10000m"
nginx.org/client-max-body-size: "10000m"
spec:
# tls:
# - secretName: tls-certificate
rules:
- host: sfc-stress.dev
http:
paths:
- pathType: Prefix
path: /workload
backend:
service:
name: sfc-stress
port:
number: 30005