我已经建立了一个包含以下节点的 HA Kubernetes 集群。
1 Nginx 负载均衡器 2 Kubernetes Masters 2 工作节点 1 开发节点(持有 kubectl、helm 实用程序) 我有一个开发节点,我在其中设置了 kubectl,并且能够启动 pod。
我已经在我的开发节点上设置了 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
让我知道是否需要其他任何东西。
请在这里提出建议。