wormhole/devnet/bridge.yaml

82 lines
1.9 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-03 10:47:22 -07:00
containers:
- name: guardiand
image: guardiand-image
command:
- /guardiand
2020-08-16 08:05:58 -07:00
- -ethRPC
- ws://eth-devnet:8545
2020-08-20 12:48:58 -07:00
- -agentRPC
2020-08-20 15:06:38 -07:00
- localhost:9000
- -ethConfirmations
2020-08-21 03:47:53 -07:00
- '3'
2020-08-17 09:20:15 -07:00
- -unsafeDevMode
# - -logLevel
# - debug
2020-08-03 10:47:22 -07:00
ports:
- containerPort: 8999
name: p2p
protocol: UDP
- containerPort: 6060
name: pprof
protocol: TCP
# volumeMounts:
# - name: guardian-data
# mountPath: /data
- name: agent
image: solana-agent
command:
- /usr/local/bin/agent
2020-08-21 03:47:53 -07:00
- 'Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o' # TODO: program address
- 'solana-devnet' # host
- '8899' # rpc port
- '8999' # pubsub/ws port
- '9000' # grpc listen port
ports:
- containerPort: 9000
name: grpc
protocol: TCP
# volumeClaimTemplates:
# - metadata:
# name: guardian-data
# spec:
# accessModes: [ "ReadWriteOnce" ]
# resources:
# requests:
# storage: 1Gi