头盔安装因具有项目依赖项的项目而失败

时间:2019-07-20 12:46:45

标签: azure kubernetes-helm azure-dev-spaces

我根据以下示例创建了webfrontend和mywebapi, https://docs.microsoft.com/en-us/azure/dev-spaces/get-started-netcore-visualstudio

,并根据此示例中的以下Charts文件夹,为上述示例创建了类似的Charts文件夹。 https://docs.microsoft.com/en-us/azure/dev-spaces/quickstart-team-development https://github.com/Azure/dev-spaces/tree/master/samples/BikeSharingApp/charts

但是,运行以下脚本时出现以下错误:

可以从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

有什么主意吗?

0 个答案:

没有答案