我正在关注这个 blog post 并在这个命令中,
helm upgrade --install airflow airflow/ \ --namespace airflow \ --values values.yaml
我收到了这个错误。in airflow: chart metadata (Chart.yaml) missing 但我实际上在 airflow/ 下有 Chart.yaml 文件。

$ ls
Chart.yaml      charts          requirements.yaml   tiller.yaml
Icon?           requirements.lock   templates       values.yaml

下面是 helm 版本和 kubectl pod
$ helm version
Client: &version.Version{SemVer:"v2.13.1", GitCommit:"618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.13.1", GitCommit:"618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState:"clean"}
$ kubectl get pods --namespace kube-system
NAME                                    READY     STATUS    RESTARTS   AGE
coredns-fb8b8dccf-9z8v5                 1/1       Running   3          6h
coredns-fb8b8dccf-wdtpl                 1/1       Running   3          6h
etcd-minikube                           1/1       Running   1          6h
kube-addon-manager-minikube             1/1       Running   1          6h
kube-apiserver-minikube                 1/1       Running   1          6h
kube-controller-manager-minikube        1/1       Running   1          6h
kube-proxy-m4whq                        1/1       Running   0          2h
kube-scheduler-minikube                 1/1       Running   1          6h
kubernetes-dashboard-79dd6bfc48-5z9cx   1/1       Running   3          6h
storage-provisioner                     1/1       Running   3          6h
tiller-deploy-8458f6c667-wmv62          1/1       Running   1          4h

有人可以帮忙解决吗?

最佳答案

您可以在 here 中找到有关 helm 升级和要求的详细信息:

在您的示例中,请转到airflow-kube-helm 目录并运行:

helm upgrade --install airflow ./airflow/ --namespace airflow --values ./airflow/values.yaml

如果之前的部署失败,请使用 helm delete (your_release_name) --purge有关此问题的更多信息 herehere

希望这有帮助。请分享您的发现。

关于kubernetes - helm 升级时缺少图表元数据 (Chart.yaml),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/55605491/

10-16 22:48