2020-08-15 14:54:44 -07:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: solana-devnet
|
|
|
|
labels:
|
|
|
|
app: solana-devnet
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- port: 8899
|
|
|
|
name: rpc
|
|
|
|
protocol: TCP
|
2020-08-16 04:21:10 -07:00
|
|
|
- port: 9900
|
|
|
|
name: faucet
|
|
|
|
protocol: TCP
|
|
|
|
clusterIP: None
|
|
|
|
selector:
|
|
|
|
app: solana-devnet
|
|
|
|
---
|
2020-08-15 14:54:44 -07:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: StatefulSet
|
|
|
|
metadata:
|
|
|
|
name: solana-devnet
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: solana-devnet
|
|
|
|
serviceName: solana-devnet
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: solana-devnet
|
|
|
|
spec:
|
|
|
|
terminationGracePeriodSeconds: 1
|
|
|
|
containers:
|
2020-08-22 01:52:51 -07:00
|
|
|
- name: devnet
|
2021-04-07 11:16:19 -07:00
|
|
|
image: solana-contract
|
|
|
|
command:
|
|
|
|
- /root/.local/share/solana/install/active_release/bin/solana-test-validator
|
|
|
|
- --bpf-program
|
|
|
|
- Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o
|
2021-06-22 11:09:38 -07:00
|
|
|
- /opt/solana/deps/bridge.so
|
2021-04-07 11:16:19 -07:00
|
|
|
- --log
|
2020-08-15 14:54:44 -07:00
|
|
|
ports:
|
|
|
|
- containerPort: 8001
|
|
|
|
name: gossip
|
|
|
|
protocol: UDP
|
|
|
|
- containerPort: 8003
|
|
|
|
name: tpu
|
|
|
|
protocol: UDP
|
|
|
|
- containerPort: 8004
|
|
|
|
name: tpufwd
|
|
|
|
protocol: UDP
|
|
|
|
- containerPort: 8000
|
|
|
|
name: tvu
|
|
|
|
protocol: UDP
|
|
|
|
- containerPort: 8002
|
|
|
|
name: tvufwd
|
|
|
|
protocol: UDP
|
|
|
|
- containerPort: 8006
|
|
|
|
name: repair
|
|
|
|
protocol: UDP
|
|
|
|
- containerPort: 8007
|
|
|
|
name: serverepair
|
|
|
|
protocol: UDP
|
|
|
|
- containerPort: 8899
|
|
|
|
name: rpc
|
|
|
|
protocol: TCP
|
|
|
|
- containerPort: 8900
|
|
|
|
name: pubsub
|
|
|
|
protocol: TCP
|
2020-08-16 04:21:10 -07:00
|
|
|
- containerPort: 9900
|
|
|
|
name: faucet
|
|
|
|
protocol: TCP
|
2020-11-27 16:33:57 -08:00
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
port: rpc
|
|
|
|
path: /health
|
2020-08-22 01:52:51 -07:00
|
|
|
- name: setup
|
|
|
|
image: solana-agent
|
|
|
|
command:
|
|
|
|
- /usr/src/solana/devnet_setup.sh
|
2020-11-27 16:33:57 -08:00
|
|
|
startupProbe:
|
|
|
|
tcpSocket:
|
|
|
|
port: 2000
|
|
|
|
periodSeconds: 1
|
|
|
|
failureThreshold: 300
|