2022-09-07 11:43:05 -07:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: fly
|
|
|
|
labels:
|
|
|
|
app: fly
|
|
|
|
spec:
|
|
|
|
clusterIP: None
|
|
|
|
selector:
|
|
|
|
app: fly
|
2022-12-05 12:41:37 -08:00
|
|
|
ports:
|
|
|
|
- port: 8001
|
|
|
|
name: fly
|
|
|
|
protocol: TCP
|
2022-09-07 11:43:05 -07:00
|
|
|
---
|
|
|
|
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-15 07:51:15 -08:00
|
|
|
value: mongodb://mongo-0.mongo/?replicaSet=rs0
|
2022-12-05 12:41:37 -08:00
|
|
|
- name: API_PORT
|
|
|
|
value: "8001"
|
2022-09-07 11:43:05 -07:00
|
|
|
readinessProbe:
|
2022-12-05 12:41:37 -08:00
|
|
|
httpGet:
|
|
|
|
path: /api/ready
|
|
|
|
port: 8001
|
2022-12-14 12:07:55 -08:00
|
|
|
initialDelaySeconds: 30
|
|
|
|
periodSeconds: 20
|
|
|
|
timeoutSeconds: 3
|
|
|
|
failureThreshold: 3
|
2022-12-05 12:41:37 -08:00
|
|
|
ports:
|
|
|
|
- containerPort: 8001
|
|
|
|
name: server
|
|
|
|
protocol: TCP
|