is this a bug?
i notice that it is very strict on using the werid quote "`"
syncCatalog can detect the rules but consul connect cannot detect the rules
I tried removing () and uses like Host:localhost but traefik dashboard doesn't like it.
Note that i am using helm and kubernetes. Also use kubernetes yaml to implement these tests.
When i tried with quotes around each: consul.hashicorp.com/service-tags: "traefik.enable=true","traefik.http.routers.demo-web.rule=PathPrefix(/v1)","traefik.http.routers.demo-web.entrypoints=web"
I get a error: error parsing consul_demodeploy.yaml: error converting YAML to JSON: yaml: line 26: did not find expected key
so it doesn't allow that type of syntax
When i used:
"traefik.enable=true,traefik.http.routers.demo-web.rule=PathPrefix("/v1"),traefik.http.routers.demo-web.entrypoints=web".
it does show up as valid in traefik's dashboard but it disappears in a few seconds
in consul dashbaord, it outputs like =PathPrefix("/v1")
But why does it disappear in the http routers? The services shows the loadbalancer type but the router rule part disappears. Note i only added the annontations in the deployment, not the services.
edit:
after i add a loadbalancer service, the pathprefix("v1") now does not disappear.
Thanks Idez. I think that solved one probem. I appreciate your help!