ingress-nginx icon indicating copy to clipboard operation
ingress-nginx copied to clipboard

how to access application only for VPN user..

Open techsachin1 opened this issue 1 year ago • 7 comments

one of my application is access by external users. i have to restrict that application to VPN user only.. i tried with whielist but when i apply whitlist in annotation it block all user. kindly suggest me what to do

this is my ingress rule apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: kafdrop-ingress annotations: cert-manager.io/cluster-issuer: "letsencrypt-prod" kubernetes.io/ingress.class: "nginx" nginx.ingress.kubernetes.io/whitelist-source-range: x.x.x.x/32 (VPN user ip range) spec: tls:

hosts: abc-a.xyz secretName: kafdrop-tls rules: host: abc-a.xy http: paths:

  • pathType: Prefix path: "/" backend: service: name: kafdrop port: number: 9000 this is my configuration... iam using Load balance also. when i apply this , all traffic get blocked after putting whitelist annotation.. please suggest way . i need to only VPN user to access this abc-a.xyz url

techsachin1 avatar Jun 30 '23 12:06 techsachin1