Cross-namespace Configuration using Ingress&VirtualServer #3310
-
Hi everyone! I am following the instructions on https://docs.nginx.com/nginx-ingress-controller/configuration/ingress-resources/cross-namespace-configuration/ to spread ingress configs across namespaces. There are two example for ingress ressources and VirtualServer. But does anyone know how to do it with both? Something like apiVersion: k8s.nginx.org/v1
kind: VirtualServer
metadata:
name: server
namespace: server-ns
annotations:
nginx.org/mergeable-ingress-type: "minion" |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
@hahahannes |
Beta Was this translation helpful? Give feedback.
-
Hi! Thank you very much for the fast help! I hoped that it might be possible to do cross namespace routing with Thanks! |
Beta Was this translation helpful? Give feedback.
-
Its really tricky. If I understand it correctly, it is not possible to use the same |
Beta Was this translation helpful? Give feedback.
@hahahannes
VirtualServer
andVirtualServerRoute
is what you are looking for in order to do cross-namespace-routing.The
mergeable-ingress-type
is only meant to be used withIngress
resource, not with our CRDs (virtualServer and virtualserverroute)Take a look here on how to do cross-namespace routing with our CRDs:
https://github.com/nginxinc/kubernetes-ingress/tree/v2.4.1/examples/custom-resources/cross-namespace-configuration