-
Newbie flux user here, apologies if I've missed something simple! I'm getting different behavior between running The issue I'm seeing with the flux-owned HelmRelease is that Kubernetes Jobs are not being launched as helm hooks after the Postgresql dependency is up-and-running, so the remainder of the Airflow Pods are stuck waiting to initialize. This job in particular is what I'm expecting to launch: https://github.com/apache/airflow/blob/master/chart/templates/migrate-database-job.yaml. Running the release.yaml
source.yaml
Any ideas of what I may be doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Figured out that the issue was my not fully understanding how Helm hooks work, and confusion around the Helm In a nutshell, this chart has a migration Job that acts as a post-install/upgrade hook, but doesn't play well with the wait flag, since the Kubernetes resources that the chart declares have init-containers which wait on completion of the migrations job! Probably a chart design decision that they will have to re-evaluate, see apache/airflow#11979. In any case, this was resolved by adding the disableWait parameter under HelmRelease spec.<action> like so: release.yaml
|
Beta Was this translation helpful? Give feedback.
-
Another way in the new helm version:
|
Beta Was this translation helpful? Give feedback.
Figured out that the issue was my not fully understanding how Helm hooks work, and confusion around the Helm
--wait
flag.In a nutshell, this chart has a migration Job that acts as a post-install/upgrade hook, but doesn't play well with the wait flag, since the Kubernetes resources that the chart declares have init-containers which wait on completion of the migrations job! Probably a chart design decision that they will have to re-evaluate, see apache/airflow#11979.
In any case, this was resolved by adding the disableWait parameter under HelmRelease spec.<action> like so:
release.yaml