GitLab吊舱.准备就绪调查失败:获取http://10.233.124.46:8005/health_check [英] GitLab pod. Readiness probe failed: Get http://10.233.124.46:8005/health_check

查看:509
本文介绍了GitLab吊舱.准备就绪调查失败:获取http://10.233.124.46:8005/health_check的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 https://docs. gitlab.com/ce/install/kubernetes/gitlab_omnibus.html#configuring-and-installing-gitlab 来安装GitLab.但是我有一个问题.

Use https://docs.gitlab.com/ce/install/kubernetes/gitlab_omnibus.html#configuring-and-installing-gitlab for install GitLab. But I have a problem.

我在描述gitlab pod中看到: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

I see in describe gitlab pod: 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 v1.10.2

Kubernetes v1.10.2

# 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 ):

I see problem in next log (full log https://gist.github.com/IvanBiv/9a89024f5cd4a1207070badd025bf57c):

# 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日志

Gitlab Runner log

# 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

服务

# 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

推荐答案

我们曾经遇到过这个问题.我们开始使用登录页面发送200,而不是运行状况检查.使用下面的上下文路径

Couple of times we had this issue. Instead of health check, we started to use login page where it sends 200. Use the context path below

  • /users/sign_in

这篇关于GitLab吊舱.准备就绪调查失败:获取http://10.233.124.46:8005/health_check的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆