How to Drop Traffic to The Pod Kubernetes
AH
Ahmad Lukman Hakim
Dedicated Author of LUKMANLAB
publishedMinggu, 11 Desember 2022
updatedSabtu, 16 Mei 2026
# kubernetes
Hi guys, let me share the technique for dropping traffic to the Pod Kubernetes. This is just a note, and maybe you need this if you have the same study case.
The study case is pretty simple, just for dropping the traffic without deleting the Pod in a short time.
-
Edit your
Servicemanifest, you can usekubectl edit svc yourservice. Ref: https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_edit/ -
Change the value of
selector, save.
selector:
app.kubernetes.io/name: givewrongvalueofselector
Done, thanks...