{"repo":"strimzi/drain-cleaner","free":true,"listed":false,"github":"https://github.com/strimzi/drain-cleaner","clone":"git clone https://github.com/strimzi/drain-cleaner.git","description":"Utility to help with draining nodes running Strimzi-managed Apache Kafka® or ZooKeeper® pods","language":"Java","stars":65,"topics":["kubernetes","kafka","hacktoberfest"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"Strimzi Drain Cleaner Strimzi Drain Cleaner is a utility which helps with moving the Apache Kafka® pods deployed by Strimzi from Kubernetes nodes which are being drained. It is useful if you want the Strimzi operator to move the pods instead of Kubernetes itself. The advantage of this approach is that the Strimzi operator makes sure that no partition replicas become under-replicated during the node draining. To use it: Configure your Kafka topics to have replication factor higher than 1 and make sure the min.insync.replicas is always set to a number lower than the replication factor. Availability of topics with replication factor 1 or with min.insync.replicas set to the same value as the replication factor will always be affected when the brokers are restarted. Deploy Kafka using Strimzi. Deploy the Strimzi Drain Cleaner Drain the node with some Kafka broker or controller pods using the kubectl drain command How does it work? Strimzi Drain Cleaner uses Kubernetes Admission Control features and Validating Web-hooks to find out when something tries to evict the Kafka broker or controller pods. When it receives the eviction request for one of the Strimzi managed Kafka broker or controller pods, it annotates them with the strimzi.io/manual-rolling-update annotation which will tell Strimzi Cluster Operator that this pod needs to be restarted and denies the eviction request. Denying the eviction request prevents Kubernetes from restarting the Pod on their own based only on the PodD","default_branch":null,"files":null,"tree":[],"storefront":"/r/strimzi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/strimzi/drain-cleaner/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}