Files
knowledge-base/AI/openviking/k8s/01-deployment.yaml

52 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: openviking
namespace: openviking
labels:
app: openviking
spec:
replicas: 1
selector:
matchLabels:
app: openviking
template:
metadata:
labels:
app: openviking
spec:
containers:
- name: openviking
image: ghcr.io/volcengine/openviking:latest
ports:
- containerPort: 8000
protocol: TCP
envFrom:
- configMapRef:
name: openviking-config
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 1Gi
livenessProbe:
httpGet:
path: /ready
port: 1933
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /ready
port: 1933
initialDelaySeconds: 5
periodSeconds: 10
volumeMounts:
- name: data
mountPath: /app/data
volumes:
- name: data
persistentVolumeClaim:
claimName: openviking-data