You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: ds-base
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: ds-base
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: ds-base
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: ds-base
|
|
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/dsideal/ds_base:dev_20240925144053
|
|
|
|
|
imagePullPolicy: Always
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 8001
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
memory: "2Gi" # 请求2Gi内存
|
|
|
|
|
cpu: "500m" # 请求500 milliCPU(1 CPU = 1000 milliCPU)
|
|
|
|
|
limits:
|
|
|
|
|
memory: "4Gi" # 限制4Gi内存
|
|
|
|
|
cpu: "1000m" # 限制500 milliCPU
|
|
|
|
|
imagePullSecrets:
|
|
|
|
|
- name: regcred
|
|
|
|
|
|