【发布时间】:2018-04-18 19:50:10
【问题描述】:
我是按照官方教程的步骤写的Try out Halyard on GKE
我正在尝试部署步骤,但 hal deploy apply 不起作用。
我运行了这个命令,它没有返回如下错误。
hal config deploy edit --account-name my-k8s-account --type distributed
+ Get current deployment
Success
+ Get the deployment environment
Success
- No changes supplied.
在这个命令之后,我运行了这个命令hal deploy apply。
但是Prep deployment 失败并返回此错误。
! ERROR Unable to communicate with your Kubernetes cluster: Failure
executing: GET at: https://35.200.120.197/api/v1/namespaces. Message:
Forbidden!
User gke_helm-gke-test_asia-northeast1-b_helm-test doesn't have permission.
namespaces is forbidden: User "client" cannot list namespaces at the cluster
scope: Unknown user "client"..
我该如何解决这个问题?
我的 hal 版本是
$ hav -v
0.48.1-20180413145934
【问题讨论】:
-
您之前是否添加了 Kubernetes 提供程序(按照本指南,我注意到您没有提及)?该错误与集群范围内的权限有关。你能检查一下集群范围吗?
标签: kubernetes spinnaker google-kubernetes-engine