【发布时间】:2017-12-10 13:46:09
【问题描述】:
我在 google 容器引擎中创建了一个 cluster 并且我已经部署了一个在其中运行 jenkins 的 pod。然后配置了一项将构建、运行、推送和部署sample 应用程序的作业。因此,由于以下错误,所有这些作业步骤都在执行,除了“deploy-sampleapp-step”
[sampleapp_master-HAWDXNK5BCRQ7EWPPOHGW7RUWBBM25WIAIKOP6UBHIDYZGTMQIJA] Running shell script
+ kubectl --namespace=production apply -f k8s/services/
error: group map[:0xc820374b60 apps:0xc820374bd0 authorization.k8s.io:0xc820374c40 componentconfig:0xc820374d90 extensions:0xc820374e00 policy:0xc820374e70 storage.k8s.io:0xc8202cc770 federation:0xc820374af0 autoscaling:0xc820374cb0 batch:0xc820374d20 rbac.authorization.k8s.io:0xc820374ee0 authentication.k8s.io:0xc820374fc0] is already registered
所以我使用的是集群版本 1.6.4
那么有没有人知道如何升级这个问题
提前致谢
添加一些可能对上述问题有用的更多信息-
user@yproject-173008:~$ kubectl 集群信息
Kubernetes master 运行在https://IP GLBCDefaultBackend 在 https://IP/api/v1/proxy/namespaces/kube-system/services/default-http-backend
运行 Heapster 运行在 https://IP/api/v1/proxy/namespaces/kube-system/services/heapster
KubeDNS 运行在 https://IP/api/v1/proxy/namespaces/kube-system/services/kube-dns
kubernetes-dashboard 运行在
https://IP/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard
要进一步调试和诊断集群问题,请使用“kubectl cluster-info dump”。user@yproject-173008:~$ kubectl 版本
客户端版本:version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.6", GitCommit:"7fa1c1756d8bc963f1a389f4a6937dc71f08ada2", GitTreeState:"clean", BuildDate:"2017-06-16T18:34: 20Z", GoVersion:"go1.7.6", 编译器:"gc", 平台:"linux/amd64"}
服务器版本:version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.4", GitCommit:"d6f433224538d4f9ca2f7ae19b252e6fcb66a3ae", GitTreeState:"clean", BuildDate:"2017-05-19T18:33: 17Z", GoVersion:"go1.7.5", 编译器:"gc", 平台:"linux/amd64"}
【问题讨论】:
标签: docker jenkins kubernetes google-compute-engine