2022-09-07 11:43:05 -07:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: fly
|
|
|
|
labels:
|
|
|
|
app: fly
|
|
|
|
spec:
|
|
|
|
clusterIP: None
|
|
|
|
selector:
|
|
|
|
app: fly
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: StatefulSet
|
|
|
|
metadata:
|
|
|
|
name: fly
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: fly
|
|
|
|
serviceName: fly
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: fly
|
|
|
|
spec:
|
|
|
|
restartPolicy: Always
|
|
|
|
terminationGracePeriodSeconds: 0
|
|
|
|
containers:
|
|
|
|
- name: fly
|
|
|
|
image: fly:latest
|
2022-12-01 06:13:48 -08:00
|
|
|
args: ["-local"]
|
2022-09-07 11:43:05 -07:00
|
|
|
env:
|
|
|
|
- name: MONGODB_URI
|
2022-12-01 06:13:48 -08:00
|
|
|
value: mongodb://mongo-0.mongo,mongo-1.mongo,mongo-2.mongo/?replicaSet=rs0
|
2022-09-07 11:43:05 -07:00
|
|
|
readinessProbe:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- test
|
|
|
|
- -e
|
|
|
|
- "/tmp/node.key"
|
|
|
|
initialDelaySeconds: 5
|
|
|
|
periodSeconds: 5
|