自学内容网 自学内容网

解决k8s集群中安装ks3.4.1开启日志失败问题

问题

安装kubesphere v3.4.1时,开启了日志功能,部署时有三个pod报错了

Failed to pull image “busybox:latest”: rpc error: code = Unknown desc = failed to pull and unpack image “docker.io/library/busybox:latest”: failed to copy: httpReadSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/library/busybox/manifests/sha256:50aa4698fa6262977cff89181b2664b99d8a56dbca847bf62f2ef04854597cf8: 429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

解决办法

因为是离线环境所有访问不到这个docker.io,需要改为私有仓库地址。

使用Kubesphere或者命令进行编辑,修改 sts 使用的 busyboy 镜像为本地镜像


kubectl edit sts opensearch-cluster-data -n kubesphere-logging-system 
kubectl edit sts opensearch-cluster-master -n kubesphere-logging-system

在这里插入图片描述

本文修改后 image 内容(自己根据实际情况修改域名前缀)

registry.opsxlab.cn/library/busybox:latest

在这里插入图片描述
使用 kubectl get pod -A 查看
在这里插入图片描述
在这里插入图片描述


原文地址:https://blog.csdn.net/qq_44732146/article/details/142981786

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!