尝试安装 Elastic Stack
嗨,我已通过 gitlab 自托管 ee.13.2.2 连接到集群
我正在使用 gitlab,并且安装了 ingress、prometheus、cert manager 和 runner,但是当我尝试安装 Elastic stack 时,它不会安装。有谁知道我可以在哪里找到正确的日志来找出它无法安装的原因?
错误提示:
安装 Elastic Stack 时出现问题
Operation failed. Check pod logs for install-elastic-stack for more details.
+ export 'HELM_HOST=localhost:44134'
+ helm init --client-only
+ tiller -listen localhost:44134 -alsologtostderr
Creating /root/.helm
Creating /root/.helm/repository
Creating /root/.helm/repository/cache
Creating /root/.helm/repository/local
Creating /root/.helm/plugins
Creating /root/.helm/starters
Creating /root/.helm/cache/archive
Creating /root/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
[main] 2020/08/15 19:22:35 Starting Tiller v2.16.9 (tls=false)
[main] 2020/08/15 19:22:35 GRPC listening on localhost:44134
[main] 2020/08/15 19:22:35 Probes listening on :44135
[main] 2020/08/15 19:22:35 Storage driver is ConfigMap
[main] 2020/08/15 19:22:35 Max history per release is 0
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /root/.helm.
Not installing Tiller due to 'client-only' flag having been set
+ helm repo add elastic-stack https://charts.gitlab.io
"elastic-stack" has been added to your repositories
+ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "elastic-stack" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete.
+ helm upgrade elastic-stack elastic-stack/elastic-stack --install --atomic --cleanup-on-fail --reset-values --version 3.0.0 --set 'rbac.create=true,rbac.enabled=true' --namespace gitlab-managed-apps -f /data/helm/elastic-stack/config/values.yaml
[tiller] 2020/08/15 19:22:44 getting history for release elastic-stack
[storage] 2020/08/15 19:22:44 getting release history for "elastic-stack"
Release "elastic-stack" does not exist. Installing it now.
[tiller] 2020/08/15 19:22:44 preparing install for elastic-stack
[storage] 2020/08/15 19:22:44 getting release history for "elastic-stack"
[tiller] 2020/08/15 19:22:44 rendering elastic-stack chart using values
2020/08/15 19:22:44 info: manifest "elastic-stack/charts/elasticsearch/templates/podsecuritypolicy.yaml" is empty. Skipping.
2020/08/15 19:22:44 info: manifest "elastic-stack/charts/elasticsearch-curator/templates/role.yaml" is empty. Skipping.
2020/08/15 19:22:44 info: manifest "elastic-stack/charts/elasticsearch/templates/role.yaml" is empty. Skipping.
2020/08/15 19:22:44 info: manifest "elastic-stack/charts/elasticsearch-curator/templates/rolebinding.yaml" is empty. Skipping.
2020/08/15 19:22:44 info: manifest "elastic-stack/charts/elasticsearch-curator/templates/hooks/job.install.yaml" is empty. Skipping.
2020/08/15 19:22:44 info: manifest "elastic-stack/charts/elasticsearch/templates/rolebinding.yaml" is empty. Skipping.
2020/08/15 19:22:44 info: manifest "elastic-stack/charts/elasticsearch/templates/ingress.yaml" is empty. Skipping.
2020/08/15 19:22:44 info: manifest "elastic-stack/charts/elasticsearch-curator/templates/psp.yml" is empty. Skipping.
2020/08/15 19:22:44 info: manifest "elastic-stack/charts/elasticsearch/templates/configmap.yaml" is empty. Skipping.
2020/08/15 19:22:44 info: manifest "elastic-stack/charts/elasticsearch/templates/serviceaccount.yaml" is empty. Skipping.
2020/08/15 19:22:44 info: manifest "elastic-stack/charts/elasticsearch-curator/templates/serviceaccount.yaml" is empty. Skipping.
[tiller] 2020/08/15 19:22:44 performing install for elastic-stack
[tiller] 2020/08/15 19:22:44 executing 1 crd-install hooks for elastic-stack
[tiller] 2020/08/15 19:22:44 hooks complete for crd-install elastic-stack
[tiller] 2020/08/15 19:22:45 executing 1 pre-install hooks for elastic-stack
[tiller] 2020/08/15 19:22:45 hooks complete for pre-install elastic-stack
[storage] 2020/08/15 19:22:45 getting release history for "elastic-stack"
[storage] 2020/08/15 19:22:45 creating release "elastic-stack.v1"
[kube] 2020/08/15 19:22:45 building resources from manifest
[kube] 2020/08/15 19:22:45 creating 11 resource(s)
[kube] 2020/08/15 19:22:46 beginning wait for 11 resources with timeout of 5m0s
[kube] 2020/08/15 19:22:48 Pod is not ready: gitlab-managed-apps/elastic-stack-filebeat-h544s <= this line ran lots of times (100ish)
[tiller] 2020/08/15 19:27:46 warning: Release "elastic-stack" failed: timed out waiting for the condition
[storage] 2020/08/15 19:27:46 updating release "elastic-stack.v1"
[tiller] 2020/08/15 19:27:46 failed install perform step: release elastic-stack failed: timed out waiting for the condition
INSTALL FAILED
PURGING CHART
then eventually:
Successfully purged a chart!
Error: release elastic-stack failed: timed out waiting for the condition
请尝试再次运行。 Helm 有时会很快超时。如果始终失败,请查看 elastic-stack 命名空间内部。查看哪些 Pod 未在其中启动以及您遇到了什么错误。
有谁知道我可以在哪里找到正确的日志来找出它无法安装的原因?
至少,使用 GitLab 17.4(2024 年 9 月),您在查找这些日志时不会遇到任何问题:您将在 GitLab 的 Kubernetes 仪表板中看到一个“
View Logs
”按钮。
列出 Kubernetes 资源事件
GitLab 提供 pod 和流式 pod 日志的实时视图。然而,到目前为止,我们还没有从 UI 中向您显示特定于资源的事件信息,因此您仍然必须使用第 3 方工具来调试 Kubernetes 部署。
此版本将事件添加到 Kubernetes 仪表板的资源详细信息视图中。这是我们第一次向 UI 添加事件。目前,每次打开资源详细信息视图时都会刷新事件。您可以在issue 470042中跟踪实时事件流的开发。