<p>Can I change Traefik's default api path for the dashboard from <code>/api</code> to something else? I found <a href="https://docs.traefik.io/configuration/api/#custom-path" rel="nofollow noreferrer">this link</a> which is not working anymore, unfortunately.</p>

<p>Traefik is acting as Kubernetes ingress controller in my scenario and I'm using path-based routing. The problem is now that I cannot use <code>/api</code> for my own microservices because the dashboard uses this path already (<a href="https://docs.traefik.io/operations/api/#endpoints" rel="nofollow noreferrer">these endpoints</a>). </p>

<p>Ingress configuration for the dashboard:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: traefik-web-ui
  annotations:
    kubernetes.io/ingress.class: traefik 
    traefik.ingress.kubernetes.io/priority: "2"
spec:
  rules:
  - http:
      paths:
      - path: /dashboard
        backend:
          serviceName: traefik-web-ui
          servicePort: http
      - path: /api &lt;-- needed to make dashboard's api available
        backend:
          serviceName: traefik-web-ui
          servicePort: http 
</code></pre>

<p>Ingress configuration for one of the microservices:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: backend
  annotations:
    kubernetes.io/ingress.class: traefik 
    traefik.ingress.kubernetes.io/priority: "999"
spec:
  rules:
  - http:
      paths:
      - path: /apis/ &lt;-- i'd rather use /api here
        backend:
          serviceName: {{ include "my-backend.fullname" . }}
          servicePort: http 
</code></pre>

Daniel
<p>You can customize it as below </p>

<pre><code>defaultEntryPoints = ["http"]

[entryPoints]
  [entryPoints.http]
  address = ":80"

  [entryPoints.foo]
  address = ":8080"

  [entryPoints.bar]
  address = ":8081"

# Activate API and Dashboard
[api]
entryPoint = "bar"
dashboard = true

[file]
  [backends]
    [backends.backend1]
      [backends.backend1.servers.server1]
      url = "http://127.0.0.1:8081"

  [frontends]
    [frontends.frontend1]
    entryPoints = ["foo"]
    backend = "backend1"
      [frontends.frontend1.routes.test_1]
      rule = "PathPrefixStrip:/yourprefix;PathPrefix:/yourprefix"
</code></pre>

<p>Corresponding docs from Traefik <a href="https://docs.traefik.io/v1.7/configuration/api/#custom-path" rel="nofollow noreferrer">here</a></p>
