GOD I AM SO DUMB
This commit is contained in:
@@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- argo-ollama-scheduler.yaml
|
||||
- ollama-scheduler.yaml
|
||||
- coderunner.yaml
|
||||
- tools.yaml
|
||||
- rag-server.yaml
|
||||
@@ -14,10 +14,11 @@ resources:
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
# FINDME: The global branch for my repo
|
||||
configMapGenerator:
|
||||
- name: ollama-plus-revs
|
||||
literals:
|
||||
- targetRevision=main
|
||||
- targetRevision=argo
|
||||
|
||||
# Inject targetRevision from the ConfigMap into apps (kill me)
|
||||
replacements:
|
||||
|
||||
@@ -1,46 +1,64 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: schedules-api
|
||||
name: ollama-scheduler
|
||||
namespace: argo
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels: { app: schedules-api }
|
||||
matchLabels:
|
||||
- app: ollama-scheduler
|
||||
template:
|
||||
metadata:
|
||||
labels: { app: schedules-api }
|
||||
labels:
|
||||
- app: ollama-scheduler
|
||||
|
||||
spec:
|
||||
serviceAccountName: schedules-api
|
||||
serviceAccountName: ollama-scheduler
|
||||
containers:
|
||||
- name: schedules-api
|
||||
# TODO: build & push your image, then update below
|
||||
image: ghcr.io/your-org/schedules-api:0.1.0
|
||||
- name: ollama-scheduler
|
||||
image: docker.io/ion606/ollama-scheduler:0.1.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
|
||||
env:
|
||||
- { name: PORT, value: "3000" }
|
||||
- { name: NS, value: "argo" }
|
||||
- name: PORT
|
||||
value: "3000"
|
||||
- name: NS
|
||||
value: "argo"
|
||||
ports:
|
||||
- { name: http, containerPort: 3000 }
|
||||
- name: http
|
||||
containerPort: 3000
|
||||
|
||||
readinessProbe:
|
||||
tcpSocket: { port: 3000 }
|
||||
tcpSocket:
|
||||
- port: 3000
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 10
|
||||
|
||||
livenessProbe:
|
||||
tcpSocket: { port: 3000 }
|
||||
tcpSocket:
|
||||
- port: 3000
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 20
|
||||
|
||||
resources:
|
||||
requests: { cpu: "50m", memory: "64Mi" }
|
||||
limits: { cpu: "200m", memory: "256Mi" }
|
||||
requests:
|
||||
- cpu: "50m"
|
||||
- memory: "64Mi"
|
||||
limits:
|
||||
- cpu: "200m"
|
||||
- memory: "256Mi"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: schedules-api
|
||||
name: ollama-scheduler
|
||||
namespace: argo
|
||||
spec:
|
||||
selector: { app: schedules-api }
|
||||
selector:
|
||||
- app: ollama-scheduler
|
||||
ports:
|
||||
- { name: http, port: 3000, targetPort: 3000 }
|
||||
- name: http
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
type: ClusterIP
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: schedules-api
|
||||
name: ollama-scheduler
|
||||
namespace: argo
|
||||
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: schedules-api
|
||||
name: ollama-scheduler
|
||||
namespace: argo
|
||||
rules:
|
||||
- apiGroups: ["argoproj.io"]
|
||||
@@ -19,29 +20,18 @@ rules:
|
||||
- apiGroups: ["argoproj.io"]
|
||||
resources: ["workflowtemplates"]
|
||||
verbs: ["get", "list"]
|
||||
---
|
||||
# If you need ClusterWorkflowTemplate support, create this ClusterRole and a ClusterRoleBinding
|
||||
# with subject serviceAccountName: schedules-api, namespace: argo
|
||||
# apiVersion: rbac.authorization.k8s.io/v1
|
||||
# kind: ClusterRole
|
||||
# metadata:
|
||||
# name: schedules-api-cwft-read
|
||||
# rules:
|
||||
# - apiGroups: ["argoproj.io"]
|
||||
# resources: ["clusterworkflowtemplates"]
|
||||
# verbs: ["get","list"]
|
||||
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: schedules-api
|
||||
name: ollama-scheduler
|
||||
namespace: argo
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: schedules-api
|
||||
name: ollama-scheduler
|
||||
namespace: argo
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: schedules-api
|
||||
|
||||
name: ollama-scheduler
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "schedules-api",
|
||||
"name": "ollama-scheduler",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
@@ -11,4 +11,3 @@
|
||||
"@kubernetes/client-node": "^0.22.1"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user