-
Notifications
You must be signed in to change notification settings - Fork 182
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
healthChecks for Jobs seem to fail #373
Comments
Thanks @gwvandesteeg for raising this. I will have a look at what's going on there. |
@makkes the |
Also Kubernetes Jobs are immutable, so the first time the job container image changes it will fail to apply. To reconcile Kubernetes Jobs, as described in docs, the Flux Kustomization spec should contain: |
@stefanprodan what do you think about improving the messaging for such configuration errors? |
Maybe kustomize-controller could exctract them from the |
both fixes above resolve the issue thanks |
When a kustomization has a health check configured on a Job, the health checks keep failing even when the job has successfully run.
Version Info:
The reconciliation of these keep showing errors like the below:
Health check timed out for [Job 'default/neo4j-bootstrap-databases', Job 'default/mysql-bootstrap-databases']
The Kustomization in question
And the jobs result status
$ kubectl get jobs NAME COMPLETIONS DURATION AGE mysql-bootstrap-databases 1/1 3s 14h neo4j-bootstrap-databases 1/1 17s 15h
The jobs themselves just run a particular bash shell script that runs some SQL queries against the mariadb-galera database or the neo4j database to create some users, databases, and set some permissions.
This should be easily reproducible using any form of simple Job that executes a shell script.
The text was updated successfully, but these errors were encountered: