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

cadvisor dockerfile healthchecks do not utilize correct port if --port command is used to change from default 8080 #3618

Open
JerrettDavis opened this issue Oct 28, 2024 · 0 comments

Comments

@JerrettDavis
Copy link

The Dockerfile utilizes a static port 8080 for the healthcheck and expose operations:

ENV CADVISOR_HEALTHCHECK_URL=http://localhost:8080/healthz

If a non-default port is utilized, users have to explicitly set the CADVISORT_HEALTHCHECK_URL environment variable to reflect the updated port otherwise the status will remain "unhealthy".

  cadvisor:
    image: gcr.io/cadvisor/cadvisor:latest
    container_name: cadvisor
    command:
      - '-port=9092'
    expose:
      - 9092
    ports:
      - 9092:9092
    environment:
      - 'CADVISOR_HEALTHCHECK_URL=http://localhost:9092/healthz'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant