-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
47 lines (47 loc) · 1.07 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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: avalanche
labels:
app: avalanche
spec:
replicas: 1
selector:
matchLabels:
app: avalanche
template:
metadata:
labels:
app: avalanche
spec:
volumes:
- name: avalanche
persistentVolumeClaim:
claimName: pvc-avalanche
containers:
- name: avalanche
image: avalanchego:master
command: ["/avalanchego/build/avalanchego"]
args: ["--network-id=fuji"]
ports:
- name: http
containerPort: 9650
- containerPort: 9651
livenessProbe:
httpGet:
path: /ext/health/liveness
port: http
initialDelaySeconds: 30
periodSeconds: 60
failureThreshold: 5
readinessProbe:
httpGet:
path: /ext/health/readiness
port: http
initialDelaySeconds: 60
periodSeconds: 60
failureThreshold: 5
volumeMounts:
- mountPath: "/root/.avalanchego"
name: avalanche