How do you restrict access to a domain when using ingress? I want www.example.com to be public but test.example.com to be accessible only for a certain IP. I'm guessing I'll have to use iptables on the pods instead? I'm using GKE cluster.
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: test-ingress-web
spec:
tls:
- hosts:
rules:
- host: www.example.com
- host: test.example.com