19 天 后

确实解决了问题,拉了新的镜像ks-installer:v3.4.1-patch.0重新跑一下install即可

15 天 后

版本3.4

安装的时候勾选了devops功能,按照提示执行了./update-s2i-cert.sh

现在kubectl logs -f -n kubesphere-monitoring-system notification-manager-operator-6bfc9564bc-xz6c7 -c notification-manager-operator

还是提示2024/08/31 22:30:17 http: TLS handshake error from 192.168.159.16:44133: remote error: tls: bad certificate

期间执行过 kubectl -n kubesphere-system rollout restart deployment ks-installer

    执行这个脚本

    caBundle=$(kubectl get validatingWebhookConfiguration notification-manager-validating-webhook -o jsonpath=‘{.webhooks[0].clientConfig.caBundle}’)

    cat > /tmp/patch.yaml <<EOF

    spec:

    conversion:

    webhook:
    
      clientConfig:
    
        caBundle: ${caBundle}
    
        service:
    
          namespace: kubesphere-monitoring-system

    EOF

    kubectl patch crd configs.notification.kubesphere.io –type=merge –patch-file /tmp/patch.yaml

    kubectl patch crd receivers.notification.kubesphere.io –type=merge –patch-file /tmp/patch.yaml

      wanjunlei

      是解决我那个问题吗,我没有这个资源,印象里清理过所有validatingWebhookConfiguration,不然执行cluster-configuration.yaml脚本 总有错误

      wanjunlei

      还有需要提供得信息嘛,现在登录不进去无法正常使用。从帖子历史记录来看证书过期问题2月就有了,我8月安装得ks所拉取得镜像还会有这问题?

      darker 这个不是validate,是mutating。你可以先尝试一下能不能解决你的问题

        wanjunlei

        不好意思 我没有理解您的意思,我执行上面命令报错 因为我没有notification-manager-validating-webhook,所以无法正常执行命令进行测试

        我需要怎么做,提供一些信息给到您呢

          wanjunlei

          您说的重新安装notification,是否可以理解为执行下面的三条命令
          kubectl get deploy notification-manager-operator -n kubesphere-monitoring-system -o yaml > notification-manager-operator.yaml

          kubectl delete -f notification-manager-operator.yaml

          kubectl create -f notification-manager-operator.yaml
          根据代码生成证书,我k8s新手 每太看懂那个helm如何使用,所以还是想使用重新安装notification的方法。

          是通过 installer 重装

          首先用 helm 卸载 notification-manager

          然后编辑 cc

          kubectl edit cc -n kubesphere-system

          删除 status 中的 monitor 部分

          然后重启 installer

            wanjunlei

            谢谢 已经可以正常登陆了,请教下 如何查看这个证书到期时间呢,我想确认下当前证书时间是否正常

            10 天 后

            这个方法赞,已解决我遇到的问题 :

            1 个月 后
            1 个月 后
            3 个月 后

            yudong

            v3.4.1-patch.0卡住了