can crd support url service type?

spec:
  entryPoints:
  - web
  routes:
  - kind: Rule
    match: Host(`whoami.com`) && PathPrefix(`/`)
    middlewares: []
    services:
    - kind: Url
      name: http://127.0.0.1:80

can crd to support url services kind in k8s? tks

Hi @vvkkhjt1

Thanks for using Traefik and asking the question here.

No, the service can accept only Server or TraefikService as it is described in the schema definition.

In order to achieve redirection to the URL you have to use file provider with dynamic configuration mounted as a config map.

See the initial example:

http:
  routers:
    whoami:
      rule: "Host(`foo.127.0.0.1.nip.io`)"
      service: my-foo-svc
      tls:
        passthrough: true

  services:
    my-foo-svc:
      loadbalancer:
        servers:
          - address: "http://local-ip-address:80"
1 Like