首页 / 浏览问题 / 云GIS / 问题详情
超图FAQ:【iManager for k8s】11.1.0版本及以上版本,如何给产品所有资源设置亲和性和污点
64,468EXP 2023年12月26日
【iManager for k8s】11.1.0版本及以上版本,如何给产品所有资源设置亲和性和污点

1个回答

【解决办法】可以在部署前,编辑values.yaml,增加参数 #affinity: # nodeAffinity: # requiredDuringSchedulingIgnoredDuringExecution: # nodeSelectorTerms: # - matchExpressions: # - key: kubernetes.io/hostname # operator: Exists #tolerations: # - key: "key1" #能容忍的污点key # operator: "Equal" #Equal等于,表示key=value;Exists不等于,表示将会忽略value值 # value: "value1" #值 # effect: "NoExecute" #策略 # tolerationSeconds: 3600 #用于描述当Pod需要被驱逐时可以在Pod上继续保留运行的时间,注意只有effect: "NoExecute"才能设置,否则报错
64,468EXP 2023年12月26日
热门文章
关注我们
...