Namespaced load balancer mappings? #504
-
Following the docs, I'm currently setting up my cluster like this: For some integration tests, I'm creating a dedicated namespace. I'm wondering if there is a way to create a mapping that is namespace-sensitive? e.g. something like More generally, when I run |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @GSGerritsen , the loadbalancer that you configure using |
Beta Was this translation helpful? Give feedback.
Hi @GSGerritsen , the loadbalancer that you configure using
-p "8081:80@loadbalancer"
is managed by k3d and is external to your Kubernetes cluster, e.g. it's only forwarding traffic from the outside (e.g. your host from where you connect to the cluster running in Docker) to the cluster nodes.In there, (as you correctly stated), Traefik, as the Kubernetes Ingress Controller takes over.
How the Kubernetes Ingress works is a general concept (see https://kubernetes.io/docs/concepts/services-networking/ingress/) and Traefik "just" implements it (see https://doc.traefik.io/traefik/providers/kubernetes-ingress/).