trino容器设置污点(六)
前提:本文前提已经部署了trino容器和k8s集群。
容器设置污点
1、在k8s节点中设置污点
kubectl taint nodes dm04.dtstack.com dps=1:NoSchedule
2、在容器中设置容忍tolerations属性
coordinator: jvm: maxHeapSize: "2G" gcMethod: type: "UseG1GC" g1: heapRegionSize: "32M" config: memory: heapHeadroomPerNode: "" query: maxMemoryPerNode: "512MB" tolerations: - key: "dps" operator: "Equal" value: "1" effect: "NoSchedule"
重新安装部署trino容器
helm -n trino-test uninstall trino helm install trino /root/jiuyue/helm/trino/ -n trino-test