How to set a IP restriction on NodePort range of DO managed Kubernetes?
Weeks ago, I already asked a question for how to customize DO managed Kubernetes firewall on forum.
I know how to ADD new firewall rules now, but I don’t know how to customize EXISTING RULES which already added by default DO Kubernetes.
For example, DO defaultly marked that Kubernetes NodePort range (30000 ~ 32767) as a public access, which allows every IPs without any restrictions.
But I want to ONLY ALLOW my own IP to reach NodePort in this case.
Already tried to make an additional firewall with IP restriction on NodePort range, and bound it with my DOKS cluster, But didn’t work properly.
Any helpful tips for this?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.