63 lines
1.3 KiB
YAML
63 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app: terra-terrad
|
|
name: terra-terrad
|
|
spec:
|
|
ports:
|
|
- name: rpc
|
|
port: 26657
|
|
protocol: TCP
|
|
- name: rest
|
|
port: 1317
|
|
protocol: TCP
|
|
selector:
|
|
app: terra-terrad
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
labels:
|
|
app: terra-terrad
|
|
name: terra-terrad
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: terra-terrad
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: terra-terrad
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- terrad
|
|
- start
|
|
image: terra-image
|
|
name: terra-terrad
|
|
ports:
|
|
- containerPort: 26657
|
|
- containerPort: 1317
|
|
readinessProbe:
|
|
httpGet:
|
|
port: 26657
|
|
resources: {}
|
|
- name: terra-contracts
|
|
image: terra-contracts
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- "sh /app/tools/deploy.sh && touch /app/tools/success && sleep infinity"
|
|
readinessProbe:
|
|
exec:
|
|
command:
|
|
- test
|
|
- -e
|
|
- "/app/tools/success"
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
restartPolicy: Always
|
|
serviceName: terra-terrad
|