How traefik route Host:{containerName}.{domain} to container in kubernetes provider like docker

8/16/2018

From the demo from traefik image page,it can route Host:{containerName}.{domain} to container by default like this: snapshot Can traefik do this in k8s provider?

-- navee
kubernetes
traefik

1 Answer

8/27/2018

This requirement can be solved by Traefik Template.

Kubernetes Ingress Config:

# Override default configuration template.
#
# Optional
# Default: <built-in template>
#
# filename = "kubernetes.tmpl"

Default Kubernetes Template

The template write by go template, then you can do everything in the template.

-- navee
Source: StackOverflow