-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
85 lines (85 loc) · 2.02 KB
/
deployment.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
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: epto-deployment
spec:
replicas: 20
template:
metadata:
labels:
app: epto
spec:
containers:
- name: cyclon
image: cyclon:latest
imagePullPolicy: Never
ports:
- containerPort: 5000
env:
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: APP
value: "epto"
- name: DEPLOYMENT_NAME
value: "epto-deployment"
- name: NUMBER_OF_THREADS
value: '2'
- name: NUMBER_OF_WORKERS
value: '1'
# - name: KUBECONTEXT
# value: 'epto.cluster.k8s.local'
# - name: KUBECONFIG
# value: 'config'
- name: VIEW_LIMIT
value: "10"
- name: SHUFFLE_LENGTH
value: "8"
- name: LOG_LEVEL
value: "DEBUG"
- name: LOG_FORMATTER
value: "STANDARD"
resources:
limits:
memory: 90Mi
cpu: 60m
requests:
memory: 75Mi
cpu: 40m
- name: epto
image: epto:latest
imagePullPolicy: Never
ports:
- containerPort: 5001
env:
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: MY_POD_UID
valueFrom:
fieldRef:
fieldPath: metadata.uid
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NUMBER_OF_THREADS
value: '2'
- name: NUMBER_OF_WORKERS
value: '1'
- name: BROADCAST_PROB
value: '0.5'
- name: FANOUT
value: '2'
- name: TTL
value: '3'
- name: LOG_LEVEL
value: "DEBUG"
- name: LOG_FORMATTER
value: "STANDARD"