Files
dsProject/Doc/使用命令行创建K8S发布和服务/ds-base-web-deployment.yaml
2025-08-14 15:45:08 +08:00

30 lines
735 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: apps/v1
kind: Deployment
metadata:
name: ds-base-web
spec:
replicas: 1
selector:
matchLabels:
app: ds-base-web
template:
metadata:
labels:
app: ds-base-web
spec:
containers:
- name: ds-base-web
image: registry.cn-hangzhou.aliyuncs.com/dsideal/ds_base_web:20240925165112
imagePullPolicy: Always
ports:
- containerPort: 80
resources:
requests:
memory: "2Gi" # 请求2Gi内存
cpu: "500m" # 请求500 milliCPU1 CPU = 1000 milliCPU
limits:
memory: "4Gi" # 限制4Gi内存
cpu: "1000m" # 限制500 milliCPU
imagePullSecrets:
- name: regcred