k8s-wk/k8s/cloud-api/deployment.yaml
2025-04-27 15:41:01 +08:00

37 lines
823 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: cloud-ai-project
namespace: bj2-vector
spec:
replicas: 1
selector:
matchLabels:
app: cloud-ai-project
template:
metadata:
labels:
app: cloud-ai-project
spec:
hostNetwork: true
imagePullSecrets:
- name: registry-auth
containers:
- name: cloud-ai-project
image: ccr-29eug8s3-vpc.cnc.bj.baidubce.com/service/cloud_ai_project:v6
imagePullPolicy: Always
ports:
- containerPort: 8006
securityContext:
runAsUser: 0
privileged: true
resources:
requests:
nvidia.com/gpu: 1
cpu: "1"
memory: "20Gi"
limits:
nvidia.com/gpu: 1
cpu: "1"
memory: "30Gi"