fix: 增加pod节点的分布式部署配置

This commit is contained in:
dengbin40 2024-09-29 09:58:18 +08:00 committed by Shengliang Guan
parent bb6fc06284
commit 19f85afc11
1 changed files with 13 additions and 1 deletions

View File

@ -368,6 +368,18 @@ spec:
labels:
app: "tdengine"
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- tdengine
topologyKey: kubernetes.io/hostname
containers:
- name: "tdengine"
image: "tdengine/tdengine:3.2.3.0"
@ -837,4 +849,4 @@ Helm 管理下,清理操作也变得简单:
helm uninstall tdengine
```
但 Helm 也不会自动移除 PVC需要手动获取 PVC 然后删除掉。
但 Helm 也不会自动移除 PVC需要手动获取 PVC 然后删除掉。