更新部署文件 加入replicas=2,部署2个节点
apiVersion: apps/v1
kind: Deployment
metadata:
name: xxl-executor
spec:
selector:
matchLabels:
app: xxl-executor
replicas: 2
strategy:
type: Recreate
template:
metadata:
labels:
app: xxl-executor
spec:
containers:
- image: taihu/xxlps
name: xxl-executor
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9999
name: xxl-executor
网友评论