wormhole/devnet/bridge.yaml

122 lines
3.2 KiB
YAML
Raw Normal View History

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
replicas: 5
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:
# mount shared between containers for runtime state
- name: bridge-rundir
emptyDir: {}
2020-08-03 10:47:22 -07:00
containers:
- name: guardiand
image: guardiand-image
volumeMounts:
- mountPath: /run/bridge
name: bridge-rundir
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
- /guardiand
2020-10-22 03:55:24 -07:00
# - --
- bridge
- --ethRPC
2020-08-16 08:05:58 -07:00
- ws://eth-devnet:8545
- --terra
- --terraWS
- ws://terra-terrad:26657/websocket
- --terraLCD
- http://terra-lcd:1317
- --terraChainID
- localterra
- --terraContract
- terra174kgn5rtw4kf6f938wm7kwh70h2v4vcfd26jlc
- --terraKey
- /tmp/terra.key
- --agentRPC
- /run/bridge/agent.sock
- --ethConfirmations
- '2'
- --solanaBridgeAddress
- Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o
- --solanaWS
- ws://solana-devnet:8900
- --solanaRPC
- http://solana-devnet:8899
- --unsafeDevMode
- --bridgeKey
- /tmp/bridge.key
- --adminSocket
- /tmp/admin.sock
# - --logLevel=debug
securityContext:
capabilities:
add:
# required for syscall.Mlockall
- IPC_LOCK
2020-11-27 15:46:37 -08:00
readinessProbe:
httpGet:
port: 6060
path: /readyz
2020-08-03 10:47:22 -07:00
ports:
- containerPort: 8999
name: p2p
protocol: UDP
- containerPort: 6060
name: pprof
protocol: TCP
- name: agent
image: solana-agent
volumeMounts:
- mountPath: /run/bridge
name: bridge-rundir
command:
- /usr/local/bin/agent
- --bridge=Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o
- --rpc=http://solana-devnet:8899
- --ws=ws://solana-devnet:8900
- --socket=/run/bridge/agent.sock
- --keypair=id.json
ports:
- containerPort: 9000
name: grpc
protocol: TCP