This commit is contained in:
66
deploy/k8s/app.yaml
Normal file
66
deploy/k8s/app.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
# SQLite edition: intentionally ONE replica. Horizontal multi-host writers are
|
||||
# not safe with a shared SQLite WAL file. Use the Docker deployment for the
|
||||
# intended standalone mode, or switch back to a client/server DB for multi-host.
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: neuralhunt-data
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: neuralhunt
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: neuralhunt
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: neuralhunt
|
||||
spec:
|
||||
containers:
|
||||
- name: app
|
||||
image: your-registry/neuralhunt:latest
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: SQLITE_PATH
|
||||
value: /data/neuralhunt.db
|
||||
- name: ARTIFACT_DIR
|
||||
value: /data/artifacts
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: neuralhunt-secrets
|
||||
- configMapRef:
|
||||
name: neuralhunt-config
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/healthz
|
||||
port: 8080
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 5
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: neuralhunt-data
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: neuralhunt
|
||||
spec:
|
||||
selector:
|
||||
app: neuralhunt
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8080
|
||||
Reference in New Issue
Block a user