2020-08-03 10:47:22 -07:00
---
apiVersion : v1
kind : Service
metadata :
name : guardian
labels :
app : guardian
spec :
ports :
- port : 8999
name : p2p
protocol : UDP
clusterIP : None
selector :
app : guardian
---
apiVersion : apps/v1
kind : StatefulSet
metadata :
name : guardian
spec :
selector :
matchLabels :
app : guardian
serviceName : guardian
2020-08-16 05:03:59 -07:00
replicas : 5
2020-08-03 13:33:35 -07:00
updateStrategy :
# The StatefulSet rolling update strategy is rather dumb, and updates one pod after another.
# If we want blue-green deployments, we should use a Deployment instead.
type : RollingUpdate
2020-08-03 10:47:22 -07:00
template :
metadata :
labels :
app : guardian
spec :
2020-08-17 09:20:15 -07:00
terminationGracePeriodSeconds : 0
2020-08-21 09:10:54 -07:00
volumes :
- name : key-volume
configMap :
name : bridge-keypair
2020-08-03 10:47:22 -07:00
containers :
- name : guardiand
image : guardiand-image
2020-11-16 04:28:07 -08:00
env :
- name : TERRA_FEE_PAYER
value : "notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius"
2020-08-03 13:33:35 -07:00
command :
2020-10-22 03:55:24 -07:00
# Uncomment this to enable in-place debugging using dlv
# (not suitable for regular development since the process will no longer restart on its own)
#
# - /dlv
# - --listen=:2345
# - --accept-multiclient
# - --headless=true
# - --api-version=2
# - --continue=true
# - exec
2020-08-03 13:33:35 -07:00
- /guardiand
2020-10-22 03:55:24 -07:00
# - --
2020-10-28 14:41:38 -07:00
- bridge
- --ethRPC
2020-08-16 08:05:58 -07:00
- ws://eth-devnet:8545
2020-11-19 03:53:18 -08:00
# - --terra
# - --terraWS
# - ws://terra-terrad:26657/websocket
# - --terraLCD
# - http://terra-lcd:1317
# - --terraChainID
# - localterra
# - --terraContract
# - terra174kgn5rtw4kf6f938wm7kwh70h2v4vcfd26jlc
# - --terraFeePayer
# - $(TERRA_FEE_PAYER)
2020-10-28 14:41:38 -07:00
- --agentRPC
2020-08-20 15:06:38 -07:00
- localhost:9000
2020-10-28 14:41:38 -07:00
- --ethConfirmations
2020-08-21 03:47:53 -07:00
- '3'
2020-10-28 14:41:38 -07:00
- --unsafeDevMode
2020-11-19 03:53:17 -08:00
- --bridgeKey
- /tmp/bridge.key
2020-11-19 03:53:18 -08:00
- --adminSocket
- /tmp/admin.sock
2020-10-28 14:41:38 -07:00
# - --logLevel=debug
2020-10-22 07:51:56 -07:00
securityContext :
capabilities :
add :
# required for syscall.Mlockall
- IPC_LOCK
2020-08-03 10:47:22 -07:00
ports :
- containerPort : 8999
name : p2p
protocol : UDP
2020-08-19 05:23:00 -07:00
- containerPort : 6060
name : pprof
protocol : TCP
2020-08-19 08:38:55 -07:00
- name : agent
image : solana-agent
command :
- /usr/local/bin/agent
2020-08-21 11:48:58 -07:00
- 'Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o'
2020-08-19 08:38:55 -07:00
- 'solana-devnet' # host
- '8899' # rpc port
2020-08-21 10:51:45 -07:00
- '8900' # pubsub/ws port
2020-08-19 08:38:55 -07:00
- '9000' # grpc listen port
ports :
- containerPort : 9000
name : grpc
protocol : TCP