首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >GitLab豆荚。准备就绪探测失败:获取http://10.233.124.46:8005/health_check

GitLab豆荚。准备就绪探测失败:获取http://10.233.124.46:8005/health_check
EN

Stack Overflow用户
提问于 2018-06-01 21:30:42
回答 1查看 2.6K关注 0票数 0

使用omnibus.html#configuring-and-installing-gitlab安装GitLab。但我有个问题。

我在描述gitlab:Warning Unhealthy 1m (x195 over 39m) kubelet, k8s-m3.me Readiness probe failed: Get http://10.233.105.52:8005/health_check?token=SXBAQichEJasbtDSygrD: dial tcp 10.233.105.52:8005: getsockopt: connection refused中看到了

Kubernetes诉1.10.2

代码语言:javascript
复制
# kubectl get pods -owide
NAME                                        READY     STATUS             RESTARTS   AGE       IP              NODE
gitlab1-gitlab-75576c4589-7dvlm             0/1       CrashLoopBackOff   92         9h        10.233.105.52   k8s-m2.me
gitlab1-gitlab-postgresql-f66555d65-dk5v6   1/1       Running            0          9h        10.233.78.175   k8s-m1.me
gitlab1-gitlab-redis-58cf598657-mqs2w       1/1       Running            0          9h        10.233.124.48   k8s-m3.me
gitlab1-gitlab-runner-555b89f44b-7vgwm      0/1       CrashLoopBackOff   100        9h        10.233.105.51   k8s-m2.me

我看到了下一个日志中的问题(完整日志https://gist.github.com/IvanBiv/9a89024f5cd4a1207070badd025bf57c):

代码语言:javascript
复制
# kubectl describe pod gitlab1-gitlab-75576c4589-7dvlm
...
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     <none>
Events:
  Type     Reason     Age                 From                Message
  ----     ------     ----                ----                -------
  Normal   Pulled     58m (x84 over 9h)   kubelet, k8s-m2.me  Container image "gitlab/gitlab-ce:10.6.2-ce.0" already present on machine
  Warning  Unhealthy  9m (x1709 over 9h)  kubelet, k8s-m2.me  Readiness probe failed: Get http://10.233.105.52:8005/health_check?token=SXBAQichEJasbtDSygrD: dial tcp 10.233.105.52:8005: getsockopt: connection refused
  Warning  BackOff    4m (x1064 over 8h)  kubelet, k8s-m2.me  Back-off restarting failed container

Gitlab Runner日志

代码语言:javascript
复制
# kubectl logs gitlab1-gitlab-runner-555b89f44b-7vgwm
+ cp /scripts/config.toml /etc/gitlab-runner/
+ /entrypoint register --non-interactive --executor kubernetes
Running in system-mode.

ERROR: Registering runner... failed                 runner=tQtCbx5U status=couldn't execute POST against http://gitlab1-gitlab.default:8005/api/v4/runners: Post http://gitlab1-gitlab.default:8005/api/v4/runners: dial tcp 10.233.49.21:8005: i/o timeout
PANIC: Failed to register this runner. Perhaps you are having network problems

服务

代码语言:javascript
复制
# kubectl get services -owide
NAME                                                  TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                                      AGE       SELECTOR
gitlab1-gitlab                                        ClusterIP   10.233.49.21    <none>        22/TCP,8065/TCP,8105/TCP,8005/TCP,9090/TCP   9h        name=gitlab1-gitlab
gitlab1-gitlab-postgresql                             ClusterIP   10.233.60.177   <none>        5432/TCP                                     9h        name=gitlab1-gitlab-postgresql
gitlab1-gitlab-redis                                  ClusterIP   10.233.43.12    <none>        6379/TCP                                     9h        name=gitlab1-gitlab-redis
EN

回答 1

Stack Overflow用户

发布于 2018-06-02 18:42:52

我们有过几次这样的问题。我们开始使用登录页面发送200,而不是健康检查。使用下面的上下文路径

  • /用户/登录
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50651219

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档