AI/openviking: add k8s manifest (Kustomize) and remove redundant Dockerfile
This commit is contained in:
52
AI/openviking/k8s/01-deployment.yaml
Normal file
52
AI/openviking/k8s/01-deployment.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
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
|
||||
Reference in New Issue
Block a user