问题设置HA Kubernetes集群的Tiller

时间:2017-08-09 06:05:37

标签: nginx kubernetes kubernetes-helm

我已经设置了一个包含以下节点的HA Kubernetes集群。

1个Nginx负载均衡器 2 Kubernetes大师赛 2工人节点 1个Dev节点(持有kubectl,helm实用程序) 我有一个dev节点,我有kubectl设置,我能够启动pod。

我在dev节点上设置了helm客户端。

在使用helm init设置分蘖时我没有在devnode上得到任何错误,但在选定的主节点上我得到以下错误。 kubectl的配置,helm指向Nginx LB。

deployment_controller.go:303] Operation cannot be fulfilled on deployments.extensions "tiller-deploy": the object has been modified; please apply your changes to the latest version and try again 
deployment_controller.go:303] Operation cannot be fulfilled on replicasets "tiller-deploy-687742799": StorageError: invalid object, Code: 4, Key: /registry/replicasets/kube-system/tiller-deploy-687742799, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 0xc422b04010, UID in object meta:

此外,我也遇到了一些不常见的错误     pkg/controller/garbagecollector/garbagecollector.go:768: watch of <nil> ended with: very short watch pkg/controller/petset/pet_set.go:148: watch of *apps.StatefulSet ended with: very short watch

pkg/controller/resourcequota/resource_quota_controller.go:232: watch of *api.ReplicationController ended with: very short watch

我的Kubernetes群集详细信息

kubectl version
Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.2", GitCommit:"269f928217957e7126dc87e6adfa82242bfe5b1e", GitTreeState:"clean", BuildDate:"2017-07-03T15:31:10Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.2", GitCommit:"269f928217957e7126dc87e6adfa82242bfe5b1e", GitTreeState:"clean", BuildDate:"2017-07-03T15:31:10Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}

helm version
Client: &version.Version{SemVer:"v2.5.1", GitCommit:"7cf31e8d9a026287041bae077b09165be247ae66", GitTreeState:"clean"} Error: cannot connect to Tiller

如果需要其他任何内容,请告诉我。

请在这里建议。

1 个答案:

答案 0 :(得分:0)

我使用金丝雀图像开始工作:

helm init --canary-image

请告诉我这里是否有一些建议。

结束这个问题。