cvat-ai / cvat

Annotate better with CVAT, the industry-leading data engine for machine learning. Used and trusted by teams at any scale, for data of any scale.
https://cvat.ai
MIT License
12.45k stars 2.99k forks source link

Pod liveness probes fail in some container environments because local ip not included in Allowed Hosts #8567

Open sei-jmattson opened 6 days ago

sei-jmattson commented 6 days ago

Actions before raising this issue

Steps to Reproduce

  1. Deploy cvat/server v2.21.1 in k8s with default values file
  2. Check logs of server pod to see liveness probe attempts "http://10.x.x.x/api/server/about" and fails due to ip not included in Allowed Hosts

Expected Behavior

liveness probe should work with defaults.

Possible Solution

Automatically include pod ip in Allowed Hosts. PR submitted.

Context

No response

Environment

No response

azhavoro commented 1 day ago

ALLOWED_HOSTS is already set to * for the pod server https://github.com/cvat-ai/cvat/blob/develop/helm-chart/values.yaml#L41. Could you please attach the logs?