【问题标题】:kube apiserver timeout Error cleaning up secrets resource name may not be emptykube apiserver timeout 清理机密资源名称可能不为空时出错
【发布时间】:2021-10-07 19:33:56
【问题描述】:

当我在 gitlab 上触发发布时,它失败了,我检查了 gitlab-runner pod 的日志,它显示以下错误:

kubectl logs -n gitlab-tur prod-gitlab-ci-runner-0
ERROR: Job failed (system failure): Post https://10.96.0.1:443/api/v1/namespaces/gitlab-tur/secrets: dial tcp 10.96.0.1:443: i/o timeout  duration=1m0.007641837s job=3044 project=25 runner=DwvfWx49
ERROR: Error cleaning up secrets: resource name may not be empty  job=3044 project=25 runner=DwvfWx49

这是截图

版本信息:

root@ubuntu:~# kubectl version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.4", GitCommit:"8d8aa39598534325ad77120c120a22b3a990b5ea", GitTreeState:"clean", BuildDate:"2020-03-12T21:03:42Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.4", GitCommit:"8d8aa39598534325ad77120c120a22b3a990b5ea", GitTreeState:"clean", BuildDate:"2020-03-12T20:55:23Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}

我好几天都无法向环境发布任何内容。有没有人遇到过这样的问题?

【问题讨论】:

    标签: linux docker kubernetes gitlab cicd


    【解决方案1】:

    看起来有一种解决方法,方法是删除 k8s 中的 gitlab-runner pod 并按照 this post 重试该过程。

    【讨论】:

    • 感谢您的贡献,但我已经尝试过了,它会引发同样的错误。
    • @ProjectMayhem 你找到任何解决方案了吗?
    • 这是 kubeapiserver 中的某种错误。我不得不重新启动所有服务,现在它正在工作
    猜你喜欢
    • 2021-11-22
    • 2020-09-13
    • 1970-01-01
    • 2020-12-31
    • 2020-09-30
    • 2019-10-14
    • 2022-11-10
    • 2013-12-17
    • 2021-06-12
    相关资源
    最近更新 更多