-
Notifications
You must be signed in to change notification settings - Fork 0
/
follower.yaml
84 lines (77 loc) · 1.88 KB
/
follower.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
73
74
75
76
77
78
79
80
81
82
83
84
---
apiVersion: v1
kind: ConfigMap
metadata:
name: follower-config
data:
follower.toml: |
user = "firedancer"
dynamic_port_range = "8100-8200"
scratch_directory = "/scratch/fd1"
[gossip]
entrypoints = [
"leader:8001"
]
[rpc]
port = 8899
full_api = true
private = false
transaction_history = false
extended_tx_metadata_storage = false
[consensus]
identity_path = "/scratch/cluster/id.json"
[tiles.net]
interface = "bond0"
xdp_mode = "skb"
---
# Follower container.
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: follower
labels:
app: follower
spec:
replicas: 3
selector:
matchLabels:
app: follower
template:
metadata:
labels:
app: follower
xdp: exclusive
spec:
volumes:
- name: scratch
emptyDir: { }
- name: follower-config
configMap:
name: follower-config
containers:
- image: europe-west3-docker.pkg.dev/monogon-infra/fd-dev/fd-k8s-demo:latest
imagePullPolicy: Always
name: follower
command:
- /usr/local/bin/follower-entrypoint.sh
securityContext:
privileged: true
volumeMounts:
- mountPath: /scratch
name: scratch
- mountPath: /etc/follower.toml
name: follower-config
subPath: follower.toml
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: xdp
operator: In
values:
- exclusive
topologyKey: kubernetes.io/hostname
# We need the host network namespace for AF_XDP.
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet