Kubernetes查找Pod的日志

时间:2020-08-17 19:42:05

标签: kubernetes gitlab

尝试安装Elastic Stack

嗨,我已通过gitlab自托管ee.13.2.2连接到集群

我正在使用gitlab,并且安装了入口,prometheus,证书管理器和运行器,但是当我尝试安装Elastic stack时,它将无法安装。有谁知道我在哪里可以找到正确的日志,以找出为什么无法安装?

错误提示:

在安装Elastic Stack时出现了问题

Operation failed. Check pod logs for install-elastic-stack for more details.

Error-1 Error-2

+ 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

1 个答案:

答案 0 :(得分:1)

请尝试再次运行它。头盔有时会很快超时。如果一直失败,请查看弹性堆栈名称空间。看看哪些吊舱不是从里面开始的,到那里是什么错误。