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
|
2021-05-12 22:57:08 -07:00
|
|
|
- port: 7070
|
|
|
|
name: public-grpc
|
|
|
|
protocol: TCP
|
2021-07-30 16:18:53 -07:00
|
|
|
- port: 7071
|
|
|
|
name: public-rest
|
|
|
|
protocol: TCP
|
2020-08-03 10:47:22 -07:00
|
|
|
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:
|
2020-11-24 00:48:44 -08:00
|
|
|
# mount shared between containers for runtime state
|
2021-08-30 07:19:00 -07:00
|
|
|
- name: node-rundir
|
2020-11-24 00:48:44 -08:00
|
|
|
emptyDir: {}
|
2021-08-30 07:19:00 -07:00
|
|
|
- name: node-keysdir
|
2021-07-07 02:39:48 -07:00
|
|
|
secret:
|
2021-08-30 07:19:00 -07:00
|
|
|
secretName: node-bigtable-key
|
2021-07-07 02:39:48 -07:00
|
|
|
optional: true
|
|
|
|
items:
|
|
|
|
- key: bigtable-key.json
|
|
|
|
path: bigtable-key.json
|
2020-08-03 10:47:22 -07:00
|
|
|
containers:
|
|
|
|
- name: guardiand
|
|
|
|
image: guardiand-image
|
2020-11-24 00:48:44 -08:00
|
|
|
volumeMounts:
|
2021-08-30 07:19:00 -07:00
|
|
|
- mountPath: /run/node
|
|
|
|
name: node-rundir
|
2021-07-07 02:39:48 -07:00
|
|
|
- mountPath: /tmp/mounted-keys
|
2021-08-30 07:19:00 -07:00
|
|
|
name: node-keysdir
|
2021-08-23 23:01:00 -07:00
|
|
|
env:
|
|
|
|
- name: BIGTABLE_EMULATOR_HOST
|
|
|
|
value: bigtable-emulator:8086
|
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
|
|
|
# - --
|
2021-08-30 07:19:00 -07:00
|
|
|
- node
|
2020-10-28 14:41:38 -07:00
|
|
|
- --ethRPC
|
2020-08-16 08:05:58 -07:00
|
|
|
- ws://eth-devnet:8545
|
2021-07-28 06:32:49 -07:00
|
|
|
- --bscRPC
|
|
|
|
- ws://eth-devnet:8545
|
2020-12-03 07:31:48 -08:00
|
|
|
- --terraWS
|
|
|
|
- ws://terra-terrad:26657/websocket
|
|
|
|
- --terraLCD
|
|
|
|
- http://terra-lcd:1317
|
|
|
|
- --terraChainID
|
|
|
|
- localterra
|
|
|
|
- --terraContract
|
2021-09-06 19:53:37 -07:00
|
|
|
- terra18vd8fpwxzck93qlwghaj6arh4p7c5n896xzem5
|
2021-08-30 07:19:00 -07:00
|
|
|
- --solanaContract
|
2021-01-21 02:40:58 -08:00
|
|
|
- Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o
|
|
|
|
- --solanaWS
|
|
|
|
- ws://solana-devnet:8900
|
|
|
|
- --solanaRPC
|
|
|
|
- http://solana-devnet:8899
|
2020-10-28 14:41:38 -07:00
|
|
|
- --unsafeDevMode
|
2021-08-30 07:19:00 -07:00
|
|
|
- --guardianKey
|
2020-11-19 03:53:17 -08:00
|
|
|
- /tmp/bridge.key
|
2021-05-12 22:57:08 -07:00
|
|
|
- --publicRPC
|
|
|
|
- "[::]:7070"
|
2021-08-23 22:16:20 -07:00
|
|
|
- --publicWeb
|
2021-07-30 16:18:53 -07:00
|
|
|
- "[::]:7071"
|
2020-11-19 03:53:18 -08:00
|
|
|
- --adminSocket
|
|
|
|
- /tmp/admin.sock
|
2021-07-21 11:56:25 -07:00
|
|
|
- --dataDir
|
|
|
|
- /tmp/data
|
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-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
|
2020-08-19 05:23:00 -07:00
|
|
|
- containerPort: 6060
|
|
|
|
name: pprof
|
|
|
|
protocol: TCP
|
2021-05-12 22:57:08 -07:00
|
|
|
- containerPort: 7070
|
|
|
|
name: public-grpc
|
|
|
|
protocol: TCP
|