【问题标题】:Can not install sentry-onpromise using helm chart无法使用 helm chart 安装 sentry-onpromise
【发布时间】:2023-02-09 19:32:21
【问题描述】:

我尝试使用 helm chart 安装 Sentry 但是使用Helm chart安装Sentry时报错:不知道是什么问题。

这是我的掌舵版本和错误日志

helm version
version.BuildInfo{Version:"v3.10.2", GitCommit:"50f003e5ee8704ec937a756c646870227d7c8b58", GitTreeState:"clean", GoVersion:"go1.19.3"}
~/sentry> helm install sentry sentry/sentry -f values.yaml --debug
install.go:192: [debug] Original chart version: ""
install.go:209: [debug] CHART PATH: /Users/pansukkim/Library/Caches/helm/repository/sentry-17.8.0.tgz

coalesce.go:175: warning: skipped value for kafka.config: Not a table.
client.go:310: [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:310: [debug] Starting delete for "sentry-db-check" Job
client.go:128: [debug] creating 1 resource(s)
client.go:540: [debug] Watching for changes to Job sentry-db-check with timeout of 5m0s
client.go:568: [debug] Add/Modify event for sentry-db-check: ADDED
client.go:607: [debug] sentry-db-check: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:568: [debug] Add/Modify event for sentry-db-check: MODIFIED
client.go:607: [debug] sentry-db-check: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
client.go:568: [debug] Add/Modify event for sentry-db-check: MODIFIED
client.go:607: [debug] sentry-db-check: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
client.go:568: [debug] Add/Modify event for sentry-db-check: MODIFIED
Error: INSTALLATION FAILED: failed post-install: job failed: DeadlineExceeded
helm.go:84: [debug] failed post-install: job failed: DeadlineExceeded
INSTALLATION FAILED
main.newInstallCmd.func2
    helm.sh/helm/v3/cmd/helm/install.go:141
github.com/spf13/cobra.(*Command).execute
    github.com/spf13/cobra@v1.5.0/command.go:872
github.com/spf13/cobra.(*Command).ExecuteC
    github.com/spf13/cobra@v1.5.0/command.go:990
github.com/spf13/cobra.(*Command).Execute
    github.com/spf13/cobra@v1.5.0/command.go:918
main.main
    helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
    runtime/proc.go:250
runtime.goexit
    runtime/asm_amd64.s:1594
kubectl get job
NAME                        COMPLETIONS   DURATION   AGE
sentry-db-check             0/1           8m30s      8m30s
templates-sentry-db-check   0/1           6d21h      6d21h

检查作业事件。但我不知道。

kubectl describe job sentry-db-check
Events:
  Type     Reason            Age    From            Message
  ----     ------            ----   ----            -------
  Normal   SuccessfulCreate  8m49s  job-controller  Created pod: sentry-db-check-skvrs
  Normal   SuccessfulDelete  5m41s  job-controller  Deleted pod: sentry-db-check-skvrs
  Warning  DeadlineExceeded  5m41s  job-controller  Job was active longer than specified deadline
kubectl describe job templates-sentry-db-check
Events:           <none>

【问题讨论】:

    标签: kubernetes-helm sentry


    【解决方案1】:

    编辑 values.yaml 并增加 activeDeadlineSeconds。似乎作业 sentry-db-check 在尝试连接到其他组件时超时。 1000 在我的案例中起作用。

    hooks:
      enabled: true
      removeOnSuccess: true
      activeDeadlineSeconds: 1000
      shareProcessNamespace: false
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-04
      • 2020-05-13
      • 2022-08-18
      • 2023-02-25
      • 1970-01-01
      • 2020-01-24
      • 2020-06-02
      • 1970-01-01
      相关资源
      最近更新 更多