GOD I AM SO DUMB

This commit is contained in:
2025-09-13 11:56:35 -04:00
parent a4952581ec
commit 7975430489
5 changed files with 93 additions and 85 deletions
+55 -37
View File
@@ -1,46 +1,64 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: schedules-api
namespace: argo
name: ollama-scheduler
namespace: argo
spec:
replicas: 1
selector:
matchLabels: { app: schedules-api }
template:
metadata:
labels: { app: schedules-api }
spec:
serviceAccountName: schedules-api
containers:
- name: schedules-api
# TODO: build & push your image, then update below
image: ghcr.io/your-org/schedules-api:0.1.0
imagePullPolicy: IfNotPresent
env:
- { name: PORT, value: "3000" }
- { name: NS, value: "argo" }
ports:
- { name: http, containerPort: 3000 }
readinessProbe:
tcpSocket: { port: 3000 }
initialDelaySeconds: 3
periodSeconds: 10
livenessProbe:
tcpSocket: { port: 3000 }
initialDelaySeconds: 10
periodSeconds: 20
resources:
requests: { cpu: "50m", memory: "64Mi" }
limits: { cpu: "200m", memory: "256Mi" }
replicas: 1
selector:
matchLabels:
- app: ollama-scheduler
template:
metadata:
labels:
- app: ollama-scheduler
spec:
serviceAccountName: ollama-scheduler
containers:
- name: ollama-scheduler
image: docker.io/ion606/ollama-scheduler:0.1.0
imagePullPolicy: IfNotPresent
env:
- name: PORT
value: "3000"
- name: NS
value: "argo"
ports:
- name: http
containerPort: 3000
readinessProbe:
tcpSocket:
- port: 3000
initialDelaySeconds: 3
periodSeconds: 10
livenessProbe:
tcpSocket:
- port: 3000
initialDelaySeconds: 10
periodSeconds: 20
resources:
requests:
- cpu: "50m"
- memory: "64Mi"
limits:
- cpu: "200m"
- memory: "256Mi"
---
apiVersion: v1
kind: Service
metadata:
name: schedules-api
namespace: argo
name: ollama-scheduler
namespace: argo
spec:
selector: { app: schedules-api }
ports:
- { name: http, port: 3000, targetPort: 3000 }
type: ClusterIP
selector:
- app: ollama-scheduler
ports:
- name: http
port: 3000
targetPort: 3000
type: ClusterIP