forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
forge-test-runner-template.yaml
59 lines (58 loc) · 1.52 KB
/
forge-test-runner-template.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
apiVersion: v1
kind: Pod
metadata:
name: {FORGE_POD_NAME}
labels:
app.kubernetes.io/name: forge
forge-namespace: {FORGE_NAMESPACE}
forge-image-tag: {FORGE_IMAGE_TAG}
spec:
restartPolicy: Never
serviceAccountName: forge
containers:
- name: main
image: {AWS_ACCOUNT_NUM}.dkr.ecr.{AWS_REGION}.amazonaws.com/aptos/forge:{FORGE_IMAGE_TAG}
imagePullPolicy: Always
command:
- /bin/bash
- -c
- |
ulimit -n 1048576
{FORGE_ARGS}
env:
- name: FORGE_TRIGGERED_BY
value: {FORGE_TRIGGERED_BY}
- name: PROMETHEUS_URL
valueFrom:
secretKeyRef:
name: prometheus-read-only
key: url
optional: true
- name: PROMETHEUS_TOKEN
valueFrom:
secretKeyRef:
name: prometheus-read-only
key: token
optional: true
# - name: RUST_LOG
# value: debug
affinity:
# avoid scheduling with other forge or validator/fullnode pods
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values: ["validator", "fullnode", "forge"]
- key: run
operator: Exists
topologyKey: "kubernetes.io/hostname"
# schedule on a k8s worker node in the "validators" nodegroup
# to access more compute
nodeSelector:
eks.amazonaws.com/nodegroup: validators
tolerations:
- effect: NoExecute
key: aptos.org/nodepool
value: validators