Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

healthcheck parameter #4182

Closed
siyu6974 opened this issue Nov 9, 2018 · 1 comment
Closed

healthcheck parameter #4182

siyu6974 opened this issue Nov 9, 2018 · 1 comment

Comments

@siyu6974
Copy link
Contributor

siyu6974 commented Nov 9, 2018

Do you want to request a feature or report a bug?

Bug

What did you do?

A healthcheck on my container with

 traefik.backend.healthcheck.path: '/primus?access_token=healthcheck&transport=polling'

1')

- "traefik.backend.healthcheck.path='/primus?access_token=healthcheck&transport=polling'"

and

 - "traefik.backend.healthcheck.path=/primus?access_token=healthcheck&transport=polling"

What did you expect to see?

Healthcheck pinging /primus?access_token=healthcheck&transport=polling

What did you see instead?

Case 2) was pinging /primus without parameters
Case 1) and 1') converted ? and &, result in /primus%3Faccess_token=healthcheck&transport=polling

Output of traefik version: (What version of Traefik are you using?)

Version:      v1.7.4
Codename:     maroilles
Go version:   go1.11.1
Built:        2018-10-30_10

What is your environment & configuration (arguments, toml, provider, platform, ...)?

debug = false

logLevel = "ERROR"
defaultEntryPoints = ["https","http"]

[entryPoints]
  [entryPoints.http]
  address = ":80"
    [entryPoints.http.redirect]
    entryPoint = "https"
  [entryPoints.https]
  address = ":443"
  [entryPoints.https.tls]

[retry]

[docker]
endpoint = "tcp://127.0.0.1:2376"
domain = "my.domain"
watch = true
exposedByDefault = false
swarmMode = true

[acme]
email = "email@test.com"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"

If applicable, please paste the log output in DEBUG level (--logLevel=DEBUG switch)

version: '3'
services:
  primus:
    image: ${REGISTRY_URL}primus-${SUBDOMAIN}:${GIT_HASH:-latest}
    networks:
      traefik-net:
        aliases:
        - primus-${SUBDOMAIN}
    env_file: env_${SUBDOMAIN}/primus.env
    command: npm start
    deploy:
      labels:
      traefik.docker.network: "traefik-net"
      traefik.frontend.rule=Host:primus.${SUBDOMAIN}.${DOMAIN}"
      traefik.backend=primus-${SUBDOMAIN}"
      - "traefik.backend.loadbalancer.swarm=true"
      - "traefik.backend.loadbalancer.stickiness=true"
      - "traefik.backend.healthcheck.path='/primus?access_token=healthcheck&transport=polling'"
      - "traefik.backend.healthcheck.interval=10s"
      - "traefik.backend.healthcheck.timeout=2s"
      - "traefik.port=2333"
      - "traefik.protocol=http"
      - "traefik.enable=true"
    ports:
    - "2333"
@mmatur mmatur added kind/bug/confirmed a confirmed bug (reproducible). area/healthcheck and removed kind/question a question labels Nov 12, 2018
@traefiker traefiker added this to the 1.7 milestone Nov 15, 2018
@traefiker
Copy link
Contributor

Closed by #4188.

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants