【解决办法】可以在部署前,编辑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"才能设置,否则报错