kubernetes 中的奇怪错误:"starting container process caused "exec: \"/usr/bin/dumb-init\": stat /usr/bin/dumb-init: no such file or directory"

Weird Error in kubernetes: "starting container process caused "exec: \"/usr/bin/dumb-init\": stat /usr/bin/dumb-init: no such file or directory"

我在这篇文档之后构建了一个自定义的 Docker 气流图像:“https://github.com/puckel/docker-airflow". Built and run in my local VM. Everything was successful and airflow was up. Pushed the image to ACR (Azure container registry) and launched it in aks via stable helm chart. Referred this link "https://github.com/helm/charts/tree/master/stable/airflow”。现在突然在 kubernetes 中 pods 没有启动并因以下错误而失败。

Error: failed to start container "airflow-scheduler": Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/usr/bin/dumb-init\": stat /usr/bin/dumb-init: no such file or directory": unknown
Back-off restarting failed container

此错误中最奇怪的部分是我能够在前一天执行此操作而没有任何问题。今天突然这个错误仅在 AKS 中出现。它在我的本地 VM 中运行良好,也非常成功。有没有人经历过这个?

P.S。对于那些不知道稳定图表的人,可以选择在 values.yaml 文件中提供我们的自定义图像 URL。我也使用相同的方法来部署我的图像。

找出问题所在。 stable/airflow chart 对 7.0.1 进行了大规模更新,其中一项更改涉及不再支持 puckel-docker 映像,今后将仅支持 apache 的官方 docker 映像。可以看看这个问题以获得见识 https://github.com/helm/charts/issues/22483