Change BASE_URL #657
-
Hello, I've been trying to set the 'base_url' to be http://localhost:8080/airflow instead of http://localhost:8080/. To make the change I have included in the configuration file extra call in the 'helm' statement with --values:
However, when I do this, when I pull up the Pod from the webserver, it does not perform the liveness and readiness action well, as it always goes against /health instead of /airflow/health. To correct this, I have tried modifying the paths of livenessProb and readinessProb. If I modify them at the root level of the configuration file, nothing happens, and inside the webserver service I can't because 'httpGet' is not allowed parameter. Has anyone made the change of base_url? How to do it so that the Pod is lifted and makes correctly the passage of ReadinessProb and LivenessProb? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@mnaranjorion is there a specific reason you need to set You won't have this problem if you use To make the webserver probes work when setting (This solution is similar to the current flower probes, however, I actually see a bug to fix in that code also, because we only check if Give all this, it may just be easier to prevent people from setting |
Beta Was this translation helpful? Give feedback.
-
Hello, Well, because many times you have the answer in front of you and you go around it a thousand times without seeing it. Indeed, this type of configuration (change the value in Thank you very much for the clarification @thesuperzapper. Best regards. |
Beta Was this translation helpful? Give feedback.
@mnaranjorion is there a specific reason you need to set
AIRFLOW__WEBSERVER__BASE_URL
usingairflow.extraEnv
rather thanairflow.config
?You won't have this problem if you use
airflow.config
to setAIRFLOW__WEBSERVER__BASE_URL
.To make the webserver probes work when setting
AIRFLOW__WEBSERVER__BASE_URL
withairflow.extraEnv
, we will have to change the currenthttpGet
probe to anexec
liveness probe. This is becauseairflow.extraEnv
can set env-vars from Secrets/ConfigMaps, so we must actually call the$AIRFLOW__WEBSERVER__BASE_URL
env-var directly.(This solution is similar to the current flower probes, however, I actually see a bug to fix in that code also, because we only check if
AIRFL…