
1 minute read
TOP 5 MEEST GELEZEN
by linkitgroup
60.000 unieke dagelijkse bezoekers consumeren op ITNEXT.io hoogwaardige, technische artikelen over de laatste technologieën en nieuwste programmeertalen.
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.
Artikelen op ITNEXT zijn afkomstig van auteurs van internationale community experts in hun vakgebied. Ook LINKIT-explorers maken hier deel van uit en publiceren hun kennis op het platform ITNEXT.io.