Helm install failed with projects that has project dependency

狂风中的少年 提交于 2019-12-02 19:08:09

问题


I, based on the sample below, created both webfrontend and mywebapi, https://docs.microsoft.com/en-us/azure/dev-spaces/get-started-netcore-visualstudio

and based on the charts folder below from this example, I created similar charts folder for the example above. https://docs.microsoft.com/en-us/azure/dev-spaces/quickstart-team-development https://github.com/Azure/dev-spaces/tree/master/samples/BikeSharingApp/charts

However, I got errors below when running the script below:

The whole project is available from https://github.com/PingPongSet/AzureDevSpaces


az group create --name MyResourceGroup --location eastus
az aks create -g MyResourceGroup -n MyAKS --location eastus --node-vm-size Standard_DS2_v2 --node-count 1 --disable-rbac --generate-ssh-keys
az aks use-dev-spaces -g MyResourceGroup -n MyAKS --space dev --yes
cd C:\_MyLab\AzureCode\DevSpaces\ContainerDependencyWithHelm
azds show-context
cd charts/

PS C:\AzureCode\DevSpaces\ContainerDependencyWithHelm\charts> helm init --wait
$HELM_HOME has been configured at C:\Users\uername\.helm.
Warning: Tiller is already installed in the cluster.
(Use --client-only to suppress this message, or --upgrade to upgrade Tiller to the current version.)

PS C:\AzureCode\DevSpaces\ContainerDependencyWithHelm\charts> helm install -n webfrontendbackend . --dep-up --nam
espace dev --atomic
2019/07/20 13:18:39 Warning: Merging destination map for chart 'webfrontend'. The destination item 'annotations' is a table and ignoring the source 'annotations' as it has a non-table value of: <nil>
2019/07/20 13:18:39 Warning: Merging destination map for chart 'mywebapi'. The destination item 'annotations' is a table and ignoring the source 'annotations' as it has a non-table value of: <nil>
2019/07/20 13:18:39 Warning: Merging destination map for chart 'webfrontend'. The destination item 'annotations' is a table and ignoring the source 'annotations' as it has a non-table value of: <nil>
2019/07/20 13:18:39 Warning: Merging destination map for chart 'mywebapi'. The destination item 'annotations' is a table and ignoring the source 'annotations' as it has a non-table value of: <nil>
2019/07/20 13:18:39 Warning: Merging destination map for chart 'webfrontend'. The destination item 'annotations' is a table and ignoring the source 'annotations' as it has a non-table value of: <nil>
2019/07/20 13:18:39 Warning: Merging destination map for chart 'mywebapi'. The destination item 'annotations' is a table and ignoring the source 'annotations' as it has a non-table value of: <nil>
2019/07/20 13:18:39 Warning: Merging destination map for chart 'webfrontend'. The destination item 'annotations' is a table and ignoring the source 'annotations' as it has a non-table value of: <nil>
2019/07/20 13:18:39 Warning: Merging destination map for chart 'mywebapi'. The destination item 'annotations' is a table and ignoring the source 'annotations' as it has a non-table value of: <nil>
INSTALL FAILED
PURGING CHART
Error: release webfrontendbackend failed: Ingress.extensions "mywebapi" is invalid: spec: Invalid value: []extensions.IngressRule(nil): either `backend` or `rules` must be specified
Successfully purged a chart!
Error: release webfrontendbackend failed: Ingress.extensions "mywebapi" is invalid: spec: Invalid value: []extensions.IngressRule(nil): either `backend` or `rules` must be specified

Any idea?

来源:https://stackoverflow.com/questions/57124873/helm-install-failed-with-projects-that-has-project-dependency

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!