我在集群中运行了一个使用Kube DNS服务的CoreDNS。我想禁用AutoScaler和Kube-DNS部署,或者将其扩展到0。
然而,一旦我这样做了,它总是自动缩放到2。我能做什么?
发布于 2021-06-22 19:10:22
您正在经历的场景由official documentation描述。
如here.所述,
kubectl scale deployment --replicas=0 kube-dns-autoscaler --namespace=kube-system
kubectl scale deployment --replicas=0 kube-dns --namespace=kube-systemkubectl scale --replicas=0 deployment/kube-dns-autoscaler --namespace=kube-system
kubectl scale --replicas=0 deployment/kube-dns --namespace=kube-system请记住指定namespace。
https://stackoverflow.com/questions/68019896
复制相似问题