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
|
2021-11-04 02:00:52 -07:00
|
|
|
- name: PUBSUB_EMULATOR_HOST
|
|
|
|
value: pubsub-emulator:8085
|
2020-08-03 13:33:35 -07:00
|
|
|
command:
|
|
|
|
- /guardiand
|
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
|
2022-07-10 17:47:10 -07:00
|
|
|
# - --bscRPC
|
|
|
|
# - ws://eth-devnet2:8545
|
2021-10-18 08:53:13 -07:00
|
|
|
- --polygonRPC
|
|
|
|
- ws://eth-devnet:8545
|
2021-12-14 15:16:11 -08:00
|
|
|
- --avalancheRPC
|
|
|
|
- ws://eth-devnet:8545
|
2022-03-15 07:41:10 -07:00
|
|
|
- --auroraRPC
|
|
|
|
- ws://eth-devnet:8545
|
2022-02-02 09:50:10 -08:00
|
|
|
- --fantomRPC
|
|
|
|
- ws://eth-devnet:8545
|
2021-12-20 11:40:58 -08:00
|
|
|
- --oasisRPC
|
|
|
|
- ws://eth-devnet:8545
|
2022-03-03 13:40:32 -08:00
|
|
|
- --karuraRPC
|
|
|
|
- ws://eth-devnet:8545
|
|
|
|
- --acalaRPC
|
|
|
|
- ws://eth-devnet:8545
|
2022-04-04 15:11:03 -07:00
|
|
|
- --klaytnRPC
|
|
|
|
- ws://eth-devnet:8545
|
2022-04-28 09:20:38 -07:00
|
|
|
- --celoRPC
|
|
|
|
- ws://eth-devnet:8545
|
2022-05-10 08:23:07 -07:00
|
|
|
- --moonbeamRPC
|
|
|
|
- ws://eth-devnet:8545
|
2022-06-14 07:22:49 -07:00
|
|
|
- --neonRPC
|
|
|
|
- ws://eth-devnet:8545
|
2022-09-02 01:36:24 -07:00
|
|
|
- --wormchainWS
|
|
|
|
- ws://guardian-validator:26657/websocket
|
|
|
|
- --wormchainLCD
|
|
|
|
- http://guardian-validator:1317
|
2022-07-10 17:47:10 -07:00
|
|
|
# - --terraWS
|
|
|
|
# - ws://terra-terrad:26657/websocket
|
|
|
|
# - --terraLCD
|
|
|
|
# - http://terra-terrad:1317
|
|
|
|
# - --terraContract
|
|
|
|
# - terra18vd8fpwxzck93qlwghaj6arh4p7c5n896xzem5
|
|
|
|
# - --terra2WS
|
|
|
|
# - ws://terra2-terrad:26657/websocket
|
|
|
|
# - --terra2LCD
|
|
|
|
# - http://terra2-terrad:1317
|
|
|
|
# - --terra2Contract
|
|
|
|
# - terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au
|
|
|
|
# - --algorandAppID
|
|
|
|
# - "4"
|
|
|
|
# - --algorandIndexerRPC
|
|
|
|
# - http://algorand:8980
|
|
|
|
# - --algorandIndexerToken
|
|
|
|
# - "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
|
|
# - --algorandAlgodRPC
|
|
|
|
# - http://algorand:4001
|
|
|
|
# - --algorandAlgodToken
|
|
|
|
# - "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
2022-08-04 08:52:26 -07:00
|
|
|
# - --nearRPC
|
|
|
|
# - http://near:3030
|
|
|
|
# - --nearContract
|
|
|
|
# - wormhole.test.near
|
2021-08-30 07:19:00 -07:00
|
|
|
- --solanaContract
|
2021-01-21 02:40:58 -08:00
|
|
|
- Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o
|
2022-07-10 17:47:10 -07:00
|
|
|
# - --solanaRPC
|
|
|
|
# - http://solana-devnet:8899
|
2022-08-26 06:45:47 -07:00
|
|
|
- --pythnetContract
|
|
|
|
- Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o
|
|
|
|
# - --pythnetRPC
|
|
|
|
# - 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
|
2022-08-09 20:22:14 -07:00
|
|
|
# - --chainGovernorEnabled=true
|
2022-04-29 12:56:08 -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
|
2021-10-05 12:10:49 -07:00
|
|
|
- containerPort: 7071
|
|
|
|
name: public-grpcweb
|
|
|
|
protocol: TCP
|
2021-10-05 11:58:26 -07:00
|
|
|
- containerPort: 2345
|
|
|
|
name: debugger
|
|
|
|
protocol: TCP
|