Ingress-related relations¶
The Traefik charm provides ingress to
another charmed application through a Juju relation. The idea is that if a charm integrates with
traefik-k8s then you can integrate the two applications and your application will
receive the URL at which ingress is made available.
The Traefik charm supports two standardized interfaces:
-
Using this interface, each charmed application can request a single, cluster-unique URL for ingress. You can choose between a domain-name-based URL (
your.parameters.domain.com) and a path-based URL (domain.com\your\parameters). -
Using this interface, each charmed application can request a cluster-unique URL for each existing unit. This is ideal for applications such as Prometheus, where each remote-write endpoint needs to be routed to separately, and database applications who wish to do client-side load-balancing.
Traefik route charm¶
The Traefik route charm is a proxy charm that sits between Traefik and a charm in need of ingress, and is used to provide low-level access to Traefik configuration, as well as to allow configuration for each relation.
This charm is ideal for use cases where you need the full expressive power of Traefik’s routing configuration, or if you want to use a single Traefik instance to provide domain-name-based URL routing to some charms, but path-based URL routing to others.