ZhiYi/k8s/deployment.yaml

19 lines
374 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: netcore-api
spec:
replicas: 3
selector:
matchLabels:
app: netcore-api
template:
metadata:
labels:
app: netcore-api
spec:
containers:
- name: netcore-api
image: zhiyi.core.service:v25021702 # 使用本地镜像名称
ports:
- containerPort: 5088