当我为 Kubedns 运行部署时,它成功启动,但在正常运行 8 分钟后,它被删除。当它运行时,它可以很好地解决 dns 请求。有没有其他人经历过这个?我开始在其他随机部署中看到这一点。
Kubernetes 版本客户端版本:version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.4", GitCommit:"7243c69eb523aa4377bce883e7c0dd76b84709a1", GitTreeState:"clean", BuildDate:"2017-03-07T23: 53:09Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"} 服务器版本: version.Info{Major:"1", Minor:"5", GitVersion:"v1 .5.4", GitCommit:"7243c69eb523aa4377bce883e7c0dd76b84709a1", GitTreeState:"clean", BuildDate:"2017-03-07T23:34:32Z", GoVersion:"go1.7.4", 编译器:"gc", 平台:"linux/amd64 "}
环境:Centos 7
内核 Linux at4d-lvk8s01 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
记录消息
部署 Kubedns 后:
无法在 deployments.extensions “kube-dns”上执行操作:对象已被修改;请将您的更改应用到最新版本并重试 Apr 20 13:09:33 acme-lvk8s01 kube-controller-manager[912]: I0420 13:09:33.656784 912 event.go:217] Event(api.ObjectReference{Kind :“ReplicaSet”,命名空间:“kube-system”,名称:“kube-dns-3777016094”,UID:“98b57f0f-25ca-11e7-afbe-90b8d0f6559c”,APIVersion:“extensions”,ResourceVersion:“262627”,FieldPath :""}): type: 'Normal' reason: 'SuccessfulCreate' 创建 pod: kube-dns-3777016094-9jt36 Apr 20 13:09:33 acme-lvk8s01 kube-controller-manager[912]: I0420 13:09: 33.702938 912 deployment_controller.go:298] 同步部署 kube-system/kube-dns 时出错:无法在 deployments.extensions “kube-dns”上执行操作:对象已被修改;请将您的更改应用到最新版本并重试 Apr 20 13:10:03 acme-lvk8s01 kube-controller-manager[912]: W0420 13:10:03.960803 912 reflector.go:319] pkg/controller/garbagecollector/garbagecollector .go:768:观看结束于:401:请求索引中的事件已过时并已清除(请求的历史记录已被清除 [261724/260681])[262723]
在 Kubedns 被删除之前:
将副本集 kube-dns-3777016094 缩减为 0 Apr 20 13:17:49 acme-lvk8s01 kube-controller-manager[912]: I0420 13:17:49.600483 912 deployment_controller.go:298] 同步部署 kube-system/ 时出错kube-dns:无法在 deployments.extensions 上执行操作“kube-dns”:对象已被修改;请将您的更改应用到最新版本,然后重试 Apr 20 13:17:49 acme-lvk8s01 kube-controller-manager[912]: I0420 13:17:49.623854 912 event.go:217] Event(api.ObjectReference{Kind :“ReplicaSet”,命名空间:“kube-system”,名称:“kube-dns-3777016094”,UID:“98b57f0f-25ca-11e7-afbe-90b8d0f6559c”,APIVersion:“extensions”,ResourceVersion:“263766”,FieldPath :""}): type: 'Normal' 原因: 'SuccessfulDelete' 删除的 pod: