v1.12.1日志提示failed to get azure cloud in GetVolumeLimits, plugin.host: master
Jun 22 22:36:55 master1 kubelet[101868]: E0622 22:36:55.127881 101868 azure_dd.go:147] failed to get azure cloud in GetVolumeLimits, plugin.host: master1
Jun 22 22:37:05 master1 kubelet[101868]: E0622 22:37:05.152821 101868 azure_dd.go:147] failed to get azure cloud in GetVolumeLimits, plugin.host: master1
Jun 22 22:37:15 master1 kubelet[101868]: E0622 22:37:15.175145 101868 azure_dd.go:147] failed to get azure cloud in GetVolumeLimits, plugin.host: master1
Jun 22 22:37:25 master1 kubelet[101868]: E0622 22:37:25.201988 101868 azure_dd.go:147] failed to get azure cloud in GetVolumeLimits, plugin.host: master1
Jun 22 22:37:35 master1 kubelet[101868]: E0622 22:37:35.213974 101868 azure_dd.go:147] failed to get azure cloud in GetVolumeLimits, plugin.host: master1
Jun 22 22:37:45 master1 kubelet[101868]: E0622 22:37:45.226483 101868 azure_dd.go:147] failed to get azure cloud in GetVolumeLimits, plugin.host: master1
Jun 22 22:37:55 master1 kubelet[101868]: E0622 22:37:55.245219 101868 azure_dd.go:147] failed to get azure cloud in GetVolumeLimits, plugin.host: master1
Jun 22 22:38:05 master1 kubelet[101868]: E0622 22:38:05.259761 101868 azure_dd.go:147] failed to get azure cloud in GetVolumeLimits, plugin.host: master1
Jun 22 22:38:15 master1 kubelet[101868]: E0622 22:38:15.280365 101868 azure_dd.go:147] failed to get azure cloud in GetVolumeLimits, plugin.host: master1
Jun 22 22:38:25 master1 kubelet[101868]: E0622 22:38:25.299713 101868 azure_dd.go:147] failed to get azure cloud in GetVolumeLimits, plugin.host: master1
Jun 22 22:38:35 master1 kubelet[101868]: E0622 22:38:35.314685 101868 azure_dd.go:147] failed to get azure cloud in GetVolumeLimits, plugin.host: master1
Jun 22 22:38:45 master1 kubelet[101868]: E0622 22:38:45.326017 101868 azure_dd.go:147] failed to get azure cloud in GetVolumeLimits, plugin.host: master1
Jun 22 22:38:55 master1 kubelet[101868]: E0622 22:38:55.335919 101868 azure_dd.go:147] failed to get azure cloud in GetVolumeLimits, plugin.host: master1
解决方法
- 编辑/etc/sysconfig/kubelet,加上–feature-gates=AttachVolumeLimit=false
vi /etc/sysconfig/kubelet
KUBELET_EXTRA_ARGS=--feature-gates=AttachVolumeLimit=false
- 重启kubelet
systemctl restart kubelet
- 再次查看日志,发现不再有此提示
journalctl -f -u kubelet
Jun 22 22:39:04 master1 kubelet[114960]: I0622 22:39:04.235254 114960 reconciler.go:154] Reconciler: start to sync state
附上github地址:https://github.com/kubernetes/kubernetes/issues/69503