You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2023/02/09 10:33:00 UTC

[GitHub] [airflow] potiuk commented on issue #21943: Changing Image tags causes Error: UPGRADE FAILED: cannot patch "-create-user" with kind Job: Job.batch "-create-user"

potiuk commented on issue #21943:
URL: https://github.com/apache/airflow/issues/21943#issuecomment-1423966074

   I think https://github.com/apache/airflow/pull/29439 should handle it long term. Seems that it is a known issue with K8S @jay-olulana https://github.com/kubernetes/kubernetes/issues/89657 and it has been fixed in 1.23 by adding `ttlSecondsAfterFinished`. 
   
   There is no automated way for you to recover, but you can do it manually if I am right:
   
   * have k8s 1.23+
   * apply my PR to your chart
   * nuke the chart - remove it. Since you have Terraform, that should be easy way and redeploying it should restore it.
   * alternatively remove the affected job manually using kubectl or the like 
   * redeploy the chart with the fix
   
   Once you redeploy the chart with the PR including the `ttlSecondsAfterFinished` -  the finished job should get deleted automatically after ~5 minutes (you can also decrease the ttl before deploying it).
   
   I would appreciate @jay-olulana if you could test some scenarios involved and confirm that my proposed fix works for you.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org