k3s xxl-job executors 集群

2021-04-15  本文已影响0人  9e8aeff1c70c

更新部署文件 加入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


重新注册任务,策略改为随机

image.png image.png
上一篇下一篇

猜你喜欢

热点阅读