I am newbie to Kubernetes, and I need to add some rules to the network policy:
- Allow ingress traffic from the list of predefined IP addresses to specific ports.
- Deny ingress traffic from private subnets.
- Allow egress traffic to the Internet.
- Deny egress traffic to private subnets.
I found some documents, but I couldn't find for internet.
And finally, how can I write this policy with Kubernetes java library?