-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeployment.yaml
49 lines (49 loc) · 1.18 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: hifi-liquidator-deployment
labels:
app: hifi-liquidator
spec:
replicas: 1
revisionHistoryLimit: 1
selector:
matchLabels:
app: hifi-liquidator
template:
metadata:
labels:
app: hifi-liquidator
spec:
containers:
- name: hifi-liquidator
args:
- "--config"
- "./config.json"
- "--db-file"
- "./db.json"
- "--interval"
- "15000"
- "--min-profit"
- "100"
- "--url"
- "$(NODE_URL)"
env:
- name: NODE_URL
valueFrom:
secretKeyRef:
key: node_url
name: config
- name: PRIVATE_KEY
valueFrom:
secretKeyRef:
key: private_key
name: config
image: us-east1-docker.pkg.dev/hifi-liquidator/hifi-liquidator-repo/hifi-liquidator:1.0.0
resources:
limits:
cpu: "0.5"
memory: 512Mi
requests:
cpu: "0.25"
memory: 256Mi