使用 k8s 污点容忍,实现将 doris fe、be 调度至指定节点组上面

Viewed 43

使用 k8s 污点容忍,实现将 doris fe、be 调度至指定节点组上面,应该如何做,查看了 doris-operator 文档,里面是空白的。

1 Answers

我这边采用的方式, 请参考, 如果要指定特定节点组的话 可以适当调整指定。

spec:
  metaService:
    liveTimeout: 30
    startTimeout: 120
    affinity:
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
            - matchExpressions:
                - key: kubernetes.io/arch
                  operator: In
                  values:
                    - arm64
                - key: node-lifecycle
                  operator: In
                  values:
                    - spot
  feSpec:
    affinity:
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
            - matchExpressions:
                - key: kubernetes.io/arch
                  operator: In
                  values:
                    - arm64
                - key: node-lifecycle
                  operator: In
                  values:
                    - spot
  computeGroups:
    - uniqueId: cg1
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: kubernetes.io/arch
                    operator: In
                    values:
                      - arm64
                  - key: node-lifecycle
                    operator: In
                    values:
                      - spot