mirror of
https://github.com/vacp2p/status-benchmarks.git
synced 2026-01-08 06:04:02 -05:00
89 lines
2.6 KiB
YAML
89 lines
2.6 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: status-backend-relay
|
|
namespace: status-go-test
|
|
spec:
|
|
replicas: 2
|
|
podManagementPolicy: Parallel
|
|
serviceName: status-backend-relay
|
|
selector:
|
|
matchLabels:
|
|
app: status-backend-relay
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: status-backend-relay
|
|
spec:
|
|
serviceAccountName: controlbox-sa
|
|
dnsConfig:
|
|
searches:
|
|
- status-backend-relay.status-go-test.svc.cluster.local
|
|
- status-backend-light.status-go-test.svc.cluster.local
|
|
- status-service-bootstrap.status-go-test.svc.cluster.local
|
|
- status-service-node.status-go-test.svc.cluster.local
|
|
initContainers:
|
|
- name: getenr
|
|
image: soutullostatus/getenr:v1.1.0
|
|
imagePullPolicy: Always
|
|
volumeMounts:
|
|
- name: enr-data
|
|
mountPath: /etc/enr
|
|
command: ["/bin/sh", "-c"]
|
|
args:
|
|
- |
|
|
/app/getenr.sh 3 status-service-bootstrap.status-go-test /etc/enr/BOOT_ENRS && \
|
|
/app/getenr.sh 3 status-service-node.status-go-test /etc/enr/STORE_ENRS
|
|
- name: config-init
|
|
image: soutullostatus/status-init:v1.0.0
|
|
imagePullPolicy: Always
|
|
command:
|
|
- /bin/bash
|
|
- -c
|
|
- |
|
|
set -a
|
|
source /etc/enr/BOOT_ENRS
|
|
source /etc/enr/STORE_ENRS
|
|
set +a
|
|
python /init_container.py
|
|
volumeMounts:
|
|
- name: enr-data
|
|
mountPath: /etc/enr
|
|
- name: relay-config
|
|
mountPath: /static/configs
|
|
containers:
|
|
- name: status-backend
|
|
image: soutullostatus/status-backend:b22c58bd
|
|
imagePullPolicy: IfNotPresent
|
|
args: ["-address", "0.0.0.0:3333"]
|
|
ports:
|
|
- containerPort: 3333
|
|
name: http
|
|
- containerPort: 30303
|
|
name: waku
|
|
volumeMounts:
|
|
- mountPath: "/static/configs"
|
|
name: relay-config
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
curl -X GET http://localhost:3333/health || exit 1
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
timeoutSeconds: 2
|
|
failureThreshold: 120
|
|
- name: status-subscriber
|
|
image: soutullostatus/status-subscriber:v1.0.0
|
|
env:
|
|
- name: WEBSOCKET_URL
|
|
value: "ws://localhost:3333/signals"
|
|
volumes:
|
|
- name: relay-config
|
|
emptyDir: {}
|
|
- name: enr-data
|
|
emptyDir: {}
|