fornax: fix crash-looping coordinator, add UI deployment
- Fix liveness/readiness probe paths from /api/v2/app/version (qBittorrent) to /health and /health/ready (Fornax Express server). Pod was restarting every ~30s due to probe failures against wrong endpoint. - Add fornax-ui deployment and service for React dashboard (image: fornax/ui:latest, nginx on port 80) - Split ingress: /api and /health → coordinator:3000, / → ui:80 - Update kustomization to include UI resources
This commit is contained in:
@@ -39,13 +39,15 @@ spec:
|
||||
memory: 512Mi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /api/v2/app/version
|
||||
path: /health
|
||||
port: http
|
||||
initialDelaySeconds: 15
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 30
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/v2/app/version
|
||||
path: /health/ready
|
||||
port: http
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
failureThreshold: 3
|
||||
|
||||
@@ -16,10 +16,26 @@ spec:
|
||||
- host: fornax.neuralplatform.ai
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
# API and health routes go to the Express backend
|
||||
- path: /api
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: fornax-coordinator
|
||||
port:
|
||||
number: 3000
|
||||
- path: /health
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: fornax-coordinator
|
||||
port:
|
||||
number: 3000
|
||||
# Everything else (/, /assets, etc.) goes to the React UI
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: fornax-ui
|
||||
port:
|
||||
number: 80
|
||||
|
||||
@@ -6,3 +6,5 @@ resources:
|
||||
- coordinator/deployment.yaml
|
||||
- coordinator/service.yaml
|
||||
- coordinator/ingress.yaml
|
||||
- ui/deployment.yaml
|
||||
- ui/service.yaml
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: fornax-ui
|
||||
namespace: media
|
||||
labels:
|
||||
app: fornax-ui
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: fornax-ui
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: fornax-ui
|
||||
spec:
|
||||
containers:
|
||||
- name: ui
|
||||
image: registry.neuralplatform.ai/fornax/ui:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 32Mi
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 30
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 10
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: fornax-ui
|
||||
namespace: media
|
||||
labels:
|
||||
app: fornax-ui
|
||||
spec:
|
||||
selector:
|
||||
app: fornax-ui
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 80
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user