67 lines
1.5 KiB
YAML
67 lines
1.5 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: spy
|
|
labels:
|
|
app: spy
|
|
spec:
|
|
ports:
|
|
- port: 7072
|
|
name: spyrpc
|
|
protocol: TCP
|
|
- port: 6060
|
|
name: status
|
|
protocol: TCP
|
|
clusterIP: None
|
|
selector:
|
|
app: spy
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: spy
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: spy
|
|
serviceName: spy
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: spy
|
|
spec:
|
|
terminationGracePeriodSeconds: 0
|
|
containers:
|
|
- name: spy
|
|
image: guardiand-image
|
|
command:
|
|
- /guardiand
|
|
- spy
|
|
- --nodeKey
|
|
- /tmp/node.key
|
|
- --spyRPC
|
|
- "[::]:7072"
|
|
- --network
|
|
- /wormhole/dev
|
|
# Hardcoded devnet bootstrap (generated from deterministic key in guardiand)
|
|
- --bootstrap
|
|
- /dns4/guardian-0.guardian/udp/8999/quic/p2p/12D3KooWL3XJ9EMCyZvmmGXL2LMiVBtrVa2BuESsJiXkSj7333Jw
|
|
- --ethRPC
|
|
- http://eth-devnet:8545
|
|
- --ethContract
|
|
- "0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"
|
|
- --logLevel=warn
|
|
ports:
|
|
- containerPort: 7072
|
|
name: spyrpc
|
|
protocol: TCP
|
|
- containerPort: 6060
|
|
name: status
|
|
protocol: TCP
|
|
readinessProbe:
|
|
httpGet:
|
|
port: 6060
|
|
path: /metrics
|