繁体   English   中英

在 kube.netes 上带有 helm chart 的 Sentry

[英]Sentry with helm chart on kubernetes

我正在尝试在 Kube.netes 环境中设置 sentry helm chart。 但是,我不断收到以下错误:

sezer@optimist ~> minikube --memory 10240 --cpus 4 start
😄  minikube v1.28.0 on Ubuntu 22.04
✨  Automatically selected the docker driver
📌  Using Docker driver with root privileges
👍  Starting control plane node minikube in cluster minikube
🚜  Pulling base image ...
🔥  Creating docker container (CPUs=4, Memory=10240MB) ...
🐳  Preparing Kubernetes v1.25.3 on Docker 20.10.20 ...
    ▪ Generating certificates and keys ...
    ▪ Booting up control plane ...
    ▪ Configuring RBAC rules ...
🔎  Verifying Kubernetes components...
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟  Enabled addons: storage-provisioner, default-storageclass
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
sezer@optimist ~> helm install sentry sentry/sentry
coalesce.go:162: warning: skipped value for config: Not a table.
Error: INSTALLATION FAILED: failed post-install: job failed: DeadlineExceeded

如果我运行调试模式,它只会给出这个 output;

sezer@optimist ~> helm install sentry sentry/sentry --debug
install.go:178: [debug] Original chart version: ""
install.go:199: [debug] CHART PATH: /home/sezer/.cache/helm/repository/sentry-17.9.0.tgz

coalesce.go:162: warning: skipped value for config: Not a table.
client.go:299: [debug] Starting delete for "sentry-sentry-secret" Secret
client.go:128: [debug] creating 1 resource(s)
client.go:128: [debug] creating 61 resource(s)
client.go:299: [debug] Starting delete for "sentry-db-check" Job
client.go:128: [debug] creating 1 resource(s)
client.go:528: [debug] Watching for changes to Job sentry-db-check with timeout of 5m0s
client.go:556: [debug] Add/Modify event for sentry-db-check: ADDED
client.go:595: [debug] sentry-db-check: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:556: [debug] Add/Modify event for sentry-db-check: MODIFIED
client.go:595: [debug] sentry-db-check: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
client.go:556: [debug] Add/Modify event for sentry-db-check: MODIFIED
client.go:595: [debug] sentry-db-check: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
client.go:556: [debug] Add/Modify event for sentry-db-check: MODIFIED
client.go:595: [debug] sentry-db-check: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:556: [debug] Add/Modify event for sentry-db-check: MODIFIED
Error: INSTALLATION FAILED: failed post-install: job failed: DeadlineExceeded
helm.go:88: [debug] failed post-install: job failed: DeadlineExceeded
INSTALLATION FAILED
main.newInstallCmd.func2
    helm.sh/helm/v3/cmd/helm/install.go:127
github.com/spf13/cobra.(*Command).execute
    github.com/spf13/cobra@v1.2.1/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
    github.com/spf13/cobra@v1.2.1/command.go:974
github.com/spf13/cobra.(*Command).Execute
    github.com/spf13/cobra@v1.2.1/command.go:902
main.main
    helm.sh/helm/v3/cmd/helm/helm.go:87
runtime.main
    runtime/proc.go:225
runtime.goexit
    runtime/asm_amd64.s:1371

我正在使用这个回购;
https://artifacthub.io/packages/helm/sentry/sentry

我尝试安装而不更改任何东西只是为了确定。

我想提前说一下,您的所有帮助都非常宝贵。

我尝试在远程服务器环境和本地环境中进行安装。

首先,仅helm命令日志不足以判断错误原因。

发生此错误是因为安装后作业等待太久才被标记为成功。

也许正确的答案可以在源存储库中找到: https://github.com/sentry-kube.netes/charts

但让我试着弄清楚:哨兵图表有一些Helm 挂钩https://github.com/sentry-kube.netes/charts/tree/develop/sentry/templates/hooks与安装后作业,但通过日志您提供的是无法确定哪个失败的。

我的建议是解决此安装问题,再次尝试运行 helm install 命令,并在另一个终端选项卡中运行一些 kubectl 命令以尝试发现哪些作业失败,例如kubectl get pods kubectl logs <POD> ,可以在此处找到更多选项: https://kube.netes.io/docs/tasks/debug/debug-application/debug-pods/

也许安装后作业正在尝试创建一个在您的集群或其他东西中不起作用的资源。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM