gpt4 book ai didi

postgresql - GitLab 用户界面未打开

转载 作者:可可西里 更新时间:2023-11-01 11:16:52 27 4
gpt4 key购买 nike

我在带有 GlusterFS 的 Kubernetes 中运行单独的 GitLab、Redis 和 PostgreSQL 容器以实现持久性。所有 Kubernetes 节点都拥有 RancherOS。所有节点都有 1 个核心和 4.5 GB RAM。所有节点上的 Docker 版本均为 1.12.6,以确保与 Kubernetes 的兼容性。

GitLab 服务:

apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
io.kompose.service: gitlab
name: gitlab
spec:
ports:
- name: "443"
port: 443
targetPort: 443
- name: "80"
port: 80
targetPort: 80
- name: "10022"
port: 10022
targetPort: 22
selector:
io.kompose.service: gitlab
status:
loadBalancer: {}

当我在 Kubernetes 中启动 GitLab 容器时,here是日志。我可以远程登录到运行 GitLab pod 的端口 80 上的主机,但不知何故 GitLab 页面没有打开。当我点击公共(public) URL ( http://35.xxx.yyy.zz/ ) 时出现以下错误:

 Network Error (tcp_error)

A communication error occurred: "Connection refused"
The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

For assistance, contact your network support team.

我试图使用 this 中描述的一些命令进行调查页面,但 rake 命令失败。

root@gitlab-748072774-chztb:/home/git/gitlab# rake
rake rake2.3
root@gitlab-748072774-chztb:/home/git/gitlab# which rake2.3
/usr/bin/rake2.3
root@gitlab-748072774-chztb:/home/git/gitlab# rake gitlab:check
/usr/lib/ruby/2.3.0/rubygems.rb:241:in `bin_path': can't find gem rake (>= 0.a) (Gem::GemNotFoundException)
from /usr/bin/rake:22:in `<main>'
root@gitlab-748072774-chztb:/home/git/gitlab# rake2.3 gitlab:check
/usr/lib/ruby/2.3.0/rubygems.rb:241:in `bin_path': can't find gem rake (>= 0.a) (Gem::GemNotFoundException)
from /usr/bin/rake2.3:22:in `<main>'

有什么建议吗?

最佳答案

https://pastebin.com/nXF45Scf 的第 93 行显示正在发生的事情:

type: ClusterIP

表示该服务及其集群内 IP 地址仅对集群的其他成员可用。如果你希望它出现在任何类型的公共(public) IP 上,你会想要 type: LoadBalancer 如所述in the concepts document

关于postgresql - GitLab 用户界面未打开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46121234/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com