You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

按文档搭建Aerospike多节点K8s集群时,Helm安装cert-manager超时失败

解决Cert-Manager Helm安装超时问题

基础排查步骤

  • 验证K8s集群状态:执行kubectl get nodes,确保所有节点处于Ready状态,且CPU、内存资源未耗尽。
  • 修复CRD安装链接:你提供的CRD下载链接存在空格错误,正确链接应为https://github.com/cert-manager/cert-manager/releases/download/v1.12.0/cert-manager.crds.yaml,重新执行kubectl apply -f <正确链接>确保CRD安装完成,可通过kubectl get crds | grep cert-manager验证CRD是否全部创建。

调整Helm安装参数

  • 延长超时时间:安装时添加--timeout参数,给pod启动和钩子执行留足够时间,示例命令:
    helm install \
      cert-manager jetstack/cert-manager \
      --namespace cert-manager \
      --create-namespace \
      --version v1.12.0 \
      --timeout 10m
    
  • 跳过Post-install钩子:若超时由钩子执行缓慢导致,可先跳过钩子完成安装,后续手动验证功能:
    helm install \
      cert-manager jetstack/cert-manager \
      --namespace cert-manager \
      --create-namespace \
      --version v1.12.0 \
      --no-hooks
    
    安装后执行kubectl get pods -n cert-manager确认所有pod正常运行,再通过创建测试证书验证功能:kubectl apply -f https://github.com/cert-manager/cert-manager/blob/v1.12.0/deploy/examples/selfsigned/issuer.yaml。

日志定位问题

  • 查看Cert-Manager Pod日志:
    kubectl logs -n cert-manager -l app=cert-manager
    
    排查是否存在镜像拉取失败、权限不足等启动异常。
  • 查看Helm安装历史:
    helm history cert-manager -n cert-manager
    
    找到失败版本后,执行helm get notes cert-manager -n cert-manager --revision <版本号>获取详细报错信息。

其他解决方案

  • 检查集群网络:确保节点间网络连通,Pod可正常访问外部镜像仓库(私有集群需配置镜像代理)。
  • 更换版本尝试:若v1.12.0存在兼容性问题,可尝试升级至v1.13.0或降级至v1.11.0版本重新安装。

内容的提问来源于stack exchange,提问作者jackazjimmy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.15 05:36:16