简体   繁体   中英

Remote IP based SSL in Kubernetes Ingress

In plain nginx, I can use the nginx geo module to set a variable based on the remote address. I can use this variable in the ssl path to choose a different SSL certificate and key for different remote networks accessing the server. This is necessary because the different network environments have different CAs.

How can I reproduce this behavior in a Kubernetes nginx ingress? or even Istio?

You can customize the generated config both for the base and for each Ingress. I'm not familiar with the config you are describing but some mix of the various *-snippet configmap options ( https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#server-snippet ) or a custom template ( https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/custom-template/ )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM