Kubernetes doesn’t evict podes from “unplugged” node

We have k8s v1.27.7 on-prem cluster with 3 nodes.

One node is stopped and it goes in NotReady state, but pods don’t get transferred to any other node even after a couple of hours.

kubectl get nodes                                            
NAME    STATUS     ROLES           AGE   VERSION
node1   Ready      control-plane   84d   v1.27.7
node2   Ready      control-plane   84d   v1.27.7
node3   NotReady   <none>          84d   v1.27.7

node3 has 2 taints:

Taints
node.kubernetes.io/unreachable:NoSchedule
node.kubernetes.io/unreachable:NoExecute

and we have multiple pods on this node in “ready” status and some in “terminated” state, all stuck in this for hours. They all have pretty standard settings, so in describe:

kubectl describe pod <...>
<...>
Conditions:
  Type              Status
  Initialized       True 
  Ready             False 
  ContainersReady   True 
  PodScheduled      True 
<...>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:                      <none>

(events here is even funnier because it contained a “node is not ready” warning for first hour)

So in other words – I don’t get the expected behavior of “resettling” pods from down node onto other nodes. Not every pod gets stuck like this, some go over whole flow without an issue (while having the same deployment, with no significant difference aside from service image itself and ENV variables)

In events:

kubectl get events
<...>
12m         Warning   NodeNotReady           pod1                Node is not ready
7m33s       Normal    TaintManagerEviction   pod1                Marking for deletion Pod
7m32s       Normal    Scheduled              pod1                Successfully assigned to node1
7m21s       Normal    AddedInterface         pod1                Add eth0 from k8s-pod-network
7m20s       Normal    Pulled                 pod1                Container image on machine
7m20s       Normal    Created                pod1                Created container 
7m20s       Normal    Started                pod1                Started container 
7m32s       Normal    SuccessfulCreate       replicaset/pod2     Created pod
<...>
13m         Warning   NodeNotReady           podA                Node is not ready
8m26s       Normal    TaintManagerEviction   podA                Marking for deletion Pod podA
<...>

basically podA was supposed to get deleted but instead stuck with “Ready” and never got onto the next stage of eviction.

What should I check and look for to get behind the reasons it happens? The further problem is that the real issue is on different (production) cluster that have different installation: even k8s there is 25.6, not 27.7, but on every other cluster I try and experiment – I can’t replicate the issue and everything is evicted correctly after 5 minutes. Other questions I found here were about a problem with eviction settings with older versions of k8s, but it’s not the same case here. So I’m lost in game “spot 10 differences” and need advice on where to dig up.

New contributor

Semyon Chechin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật