kubesphere / ks-installer

Install KubeSphere on existing Kubernetes cluster
https://kubesphere.io
Apache License 2.0
532 stars 747 forks source link

prometheus-k8s 这个 StatefulSet 中的 init-config-reloader 镜像地址如何修改 #2285

Open mafeifan opened 4 months ago

mafeifan commented 4 months ago

直接修改不生效,会立即还原,CDR 里没找到

image: ‘kubesphere/prometheus-config-reloader:v0.55.1’ 默认从官方地址拉,因为dockerhub被屏蔽了,导致拉取失败

mafeifan commented 4 months ago

执行 kubectl -n kubesphere-system patch cc ks-installer -p '{"spec":{"local_registry":"registry.cn-beijing.aliyuncs.com"}}' --type=merge
没有变化 kubesphere/prometheus-config-reloader:v0.55.1 其他镜像确实变成阿里云了

Mrzhang560 commented 3 months ago

执行 kubectl -n kubesphere-system patch cc ks-installer -p '{"spec":{"local_registry":"registry.cn-beijing.aliyuncs.com"}}' --type=merge 没有变化 kubesphere/prometheus-config-reloader:v0.55.1 其他镜像确实变成阿里云了

执行 kubectl -n kubesphere-system patch cc ks-installer -p '{"spec":{"local_registry":"registry.cn-beijing.aliyuncs.com"}}' --type=merge没有更改kubeskind/prometheus-config-reloader:v0.55.1 其他镜像确实变成阿里云了 您好,后面您是怎么处理的啊,我也碰到同样的问题

frezes commented 3 months ago

执行 kubectl -n kubesphere-system patch cc ks-installer -p '{"spec":{"local_registry":"registry.cn-beijing.aliyuncs.com"}}' --type=merge 没有变化 kubesphere/prometheus-config-reloader:v0.55.1 其他镜像确实变成阿里云了 执行 kubectl -n kubesphere-system patch cc ks-installer -p '{"spec":{"local_registry":"registry.cn-beijing.aliyuncs.com"}}' --type=merge没有更改kubeskind/prometheus-config-reloader:v0.55.1 其他镜像确实变成阿里云了 您好,后面您是怎么处理的啊,我也碰到同样的问题

修改工作负载 prometheus-operator 的args 字段,里边有该镜像的配置,修改为需要地址即可 kubectl edit deployment -n kubesphere-monitoring-system prometheus-operator

Mrzhang560 commented 3 months ago

谢谢你的来信 来信已收到  愿你天天开心