在kubernetes上使用舵机图的哨兵



我正在尝试在Kubernetes环境中设置哨兵舵图。然而,我不断得到以下错误:

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

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

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-kubernetes/charts

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

我的建议是对这个安装进行故障排除,再次尝试运行helm install命令,并在另一个终端选项卡中运行一些kubectl命令来尝试发现哪些作业失败,例如kubectl get podskubectl logs <POD>,更多选项可以在这里找到:https://kubernetes.io/docs/tasks/debug/debug-application/debug-pods/

可能是安装后的作业试图创建一个不能在你的集群或其他地方工作的资源。

最新更新