2024-07-10 11:59:08 +00:00
|
|
|
apiVersion: "apps/v1"
|
|
|
|
kind: StatefulSet
|
|
|
|
metadata:
|
|
|
|
name: validator-engine-pod
|
|
|
|
labels:
|
|
|
|
name: validator-engine-pod
|
|
|
|
spec:
|
|
|
|
volumeClaimTemplates:
|
|
|
|
- metadata:
|
|
|
|
name: validator-engine-pvc
|
|
|
|
spec:
|
|
|
|
storageClassName: gp2
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteOnce
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 800Gi
|
|
|
|
serviceName: validator-engine-srv-headless
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: validator-engine-pod
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: validator-engine-pod
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: validator-engine-container
|
2024-08-23 08:59:40 +00:00
|
|
|
image: ghcr.io/ton-blockchain/ton:latest
|
2024-07-10 11:59:08 +00:00
|
|
|
env:
|
|
|
|
- name: PUBLIC_IP
|
|
|
|
value: "<PUBLIC_IP>"
|
|
|
|
- name: GLOBAL_CONFIG_URL
|
|
|
|
value: "https://api.tontech.io/ton/wallet-mainnet.autoconf.json"
|
|
|
|
- name: DUMP_URL
|
|
|
|
value: "https://dump.ton.org/dumps/latest.tar.lz"
|
|
|
|
- name: LITESERVER
|
|
|
|
value: "true"
|
|
|
|
- name: VALIDATOR_PORT
|
|
|
|
value: "30001"
|
|
|
|
- name: CONSOLE_PORT
|
|
|
|
value: "30002"
|
|
|
|
- name: LITE_PORT
|
|
|
|
value: "30003"
|
|
|
|
- name: STATE_TTL
|
|
|
|
value: "86400"
|
|
|
|
- name: ARCHIVE_TTL
|
|
|
|
value: "86400"
|
|
|
|
- name: THREADS
|
|
|
|
value: "8"
|
|
|
|
- name: VERBOSITY
|
|
|
|
value: "3"
|
|
|
|
ports:
|
|
|
|
- containerPort: 30001
|
|
|
|
protocol: UDP
|
|
|
|
- containerPort: 30002
|
|
|
|
protocol: TCP
|
|
|
|
- containerPort: 30003
|
|
|
|
protocol: TCP
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: "/var/ton-work/db"
|
|
|
|
name: validator-engine-pvc
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: "64Gi"
|
|
|
|
cpu: "16"
|
|
|
|
limits:
|
|
|
|
memory: "128Gi"
|
|
|
|
cpu: "32"
|
|
|
|
---
|
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: validator-engine-srv
|
|
|
|
annotations:
|
|
|
|
service.beta.kubernetes.io/aws-load-balancer-type: external
|
|
|
|
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip
|
|
|
|
service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
|
|
|
|
service.beta.kubernetes.io/aws-load-balancer-eip-allocations: "<ELASTIC_IP_ID>" # Replace with your EIP allocation ID
|
|
|
|
spec:
|
|
|
|
type: LoadBalancer
|
|
|
|
ports:
|
|
|
|
- name: validator-udp
|
|
|
|
nodePort: 30001
|
|
|
|
port: 30001
|
|
|
|
targetPort: 30001
|
|
|
|
protocol: UDP
|
|
|
|
- name: console-tcp
|
|
|
|
nodePort: 30002
|
|
|
|
port: 30002
|
|
|
|
targetPort: 30002
|
|
|
|
protocol: TCP
|
|
|
|
- name: ls-tcp
|
|
|
|
nodePort: 30003
|
|
|
|
port: 30003
|
|
|
|
targetPort: 30003
|
|
|
|
protocol: TCP
|
|
|
|
selector:
|
|
|
|
name: validator-engine-pod
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: validator-engine-srv-headless
|
|
|
|
spec:
|
|
|
|
clusterIP: None
|
|
|
|
ports:
|
|
|
|
- name: validator-udp
|
|
|
|
port: 30001
|
|
|
|
targetPort: 30001
|
|
|
|
protocol: UDP
|
|
|
|
- name: console-tcp
|
|
|
|
port: 30002
|
|
|
|
targetPort: 30002
|
|
|
|
protocol: TCP
|
|
|
|
- name: ls-tcp
|
|
|
|
port: 30003
|
|
|
|
targetPort: 30003
|
|
|
|
protocol: TCP
|
|
|
|
selector:
|
|
|
|
name: validator-engine-pod
|