Traefik error: field not found, node: entryPoint

Issue

This Content is from Stack Overflow. Question asked by Anon

currently working to update traefik from 1.7 to 2.5 for Kubernetes 1.22 support. After changing my ingress charts to the 1.22 spec, and updating the traefik image that gets pulled, I get the following error while the traefik pod is starting up:

command traefik error: field not found, node: entryPoint

My toml file is defined in a ConfigMap.

defaultEntryPoints = ["http"]

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

      [entryPoints.api]
      address = ":13000"

      [entryPoints.ping]
      address = ":14000"

      [entryPoints.metrics]
      address = ":15000"

    [file]
    directory = "/config/dynamic"
    watch = true

    [kubernetes]
    ingressClass = "data-service-fabric"

    [ping]
    entryPoint = "ping"

    [api]
    entryPoint = "api"

    [metrics]
      [metrics.prometheus]
      entryPoint = "metrics"

It looks like maybe the error is coming from the fact that the kubernetes resource definition doesn’t have an entryPoint, but it didn’t in version 1.7 so i’m confused as to why it’s required now. I don’t see it required in version 2.5. Any ideas here? I’ve posted this on the traefik community form with no help.



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?