这是我的DaemonSet
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nginx
spec:
selector:
matchLabels:
run: nginx
template:
metadata:
labels:
run: nginx
annotations:
"cluster-autoscaler.kubernetes.io/enable-ds-eviction": "false"
"cluster-autoscaler.kubernetes.io/safe-to-evict": "false"
spec:
containers:
- image: nginx
imagePullPolicy: IfNotPresent
name: nginx
ports:
- containerPort: 80
protocol: TCP根据文档的说法。
cluster-autoscaler.kubernetes.io/enable-ds-eviction:"false"应防止缩小。
但是GKE集群自动分配器忽略了这个注释。
是否有任何方法可以防止DaemonSet被群集自动分频器逐出?
发布于 2021-10-15 12:51:20
当节点实际为空时,cluster-autoscaler.kubernetes.io/enable-ds-eviction注释就不适用了。在缩减过程中,当自动分配器正在其他地方驱逐/重新调度豆荚时,当cluster-autoscaler.kubernetes.io/enable-ds-eviction设置为false时,它将忽略守护集。一旦节点是空的(即不再有任何已部署的荚),节点就会被移除(并将优雅地终止守护进程)。
https://stackoverflow.com/questions/69581301
复制相似问题