
1 minute read
TOP 5 MOST READ ARTICLES
by linkitgroup
60.000 unique daily visitors visit ITNEXT.io to consume high-quality, technical articles on the latest technologies and newest software development languages.
How do you gracefully shut down Pods in Kubernetes?
When you type kubectl delete pod, the pod is deleted, and the endpoint controller removes its IP address and port (endpoint) from the Services and etcd. You can observe this with kubectl describe service.
Sharing Stateful Logic in React with Hooks: A Better Way to Build Reusable Components
At its core, React hooks are a great way to organise reusable stateful logic. They offer a simpler and more efficient way to manage component states and side effects, making it easier to build reusable and maintainable components.

Although React hooks have been available for some time, certain fundamental concepts — such as the reasons for their necessity — are not always well understood. In this article, Juntao Qiu reviews the problem and explains why hooks are an excellent solution for eliminating the duplication of stateful logic in React code. Developers can write cleaner and more concise code by encapsulating stateful logic in Hooks.
But that’s not enough! Several components sync a local list of endpoints:
• kube-proxy keeps a local list of endpoints to write iptables rules.
• CoreDNS uses the endpoint to reconfigure the DNS entries.
And the same is true for the Ingress controller, Istio, etc. All those components will (eventually) remove the previous endpoint so that no traffic can ever reach it again. At the same time, the kubelet is also notified of the change and deletes the pod. What happens when the kubelet deletes the pod before the rest of the components? If you want to know more, check out this article.
Articles on ITNEXT are written by authors from an international community. All of them are the best experts in their field of expertise. LINKIT explorers are also part of this community and publish their knowledge on the ITNEXT.io platform.