How can I limit access to a website that is deployed in a gke cluster to only be accessible by an IP range?

12/16/2021

How can I limit access to a website (sonar) that is deployed in a gke cluster to only be accessible by an IP range??

Can I do it with an Internal LoadBalancer?? Or do I have to enable Network Policy?

-- Gabrielle Ferreira
gke-networking
google-kubernetes-engine
kubernetes

1 Answer

12/17/2021

You can check nginx-ingress with the following annotation

nginx.ingress.kubernetes.io/whitelist-source-range

Another option check cloud armor.

Third-party example .

-- dany L
Source: StackOverflow