generated from coulomb/repo-seed
Add activity-core LLM endpoint support
This commit is contained in:
64
deploy/k8s/activity-core-llm-connect/deployment.yaml
Normal file
64
deploy/k8s/activity-core-llm-connect/deployment.yaml
Normal file
@@ -0,0 +1,64 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: llm-connect
|
||||
namespace: activity-core
|
||||
labels:
|
||||
app.kubernetes.io/name: llm-connect
|
||||
app.kubernetes.io/part-of: activity-core
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: llm-connect
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: llm-connect
|
||||
app.kubernetes.io/part-of: activity-core
|
||||
spec:
|
||||
containers:
|
||||
- name: llm-connect
|
||||
image: docker.io/library/llm-connect:latest
|
||||
imagePullPolicy: Never
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: llm-connect-config
|
||||
- secretRef:
|
||||
name: llm-connect-provider-secrets
|
||||
optional: false
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: http
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: http
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 10001
|
||||
runAsGroup: 10001
|
||||
securityContext:
|
||||
fsGroup: 10001
|
||||
Reference in New Issue
Block a user