Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kube-prometheus-stack] data: Too long: must have at most 1048576 bytes #3617

Closed
aagutu opened this issue Jul 20, 2023 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@aagutu
Copy link

aagutu commented Jul 20, 2023

Describe the bug a clear and concise description of what the bug is.

i am getting this error while deploying the operator

Error: INSTALLATION FAILED: create: failed to create: Secret "sh.helm.release.v1.prometheus.v1" is invalid: data: Too long: must have at most 1048576 bytes
helm.go:84: [debug] Secret "sh.helm.release.v1.prometheus.v1" is invalid: data: Too long: must have at most 1048576 bytes
create: failed to create
helm.sh/helm/v3/pkg/storage/driver.(*Secrets).Create
helm.sh/helm/v3/pkg/storage/driver/secrets.go:164
helm.sh/helm/v3/pkg/storage.(*Storage).Create
helm.sh/helm/v3/pkg/storage/storage.go:69
helm.sh/helm/v3/pkg/action.(*Install).RunWithContext
helm.sh/helm/v3/pkg/action/install.go:365
main.runInstall
helm.sh/helm/v3/cmd/helm/install.go:286
main.newInstallCmd.func2
helm.sh/helm/v3/cmd/helm/install.go:145
github.com/spf13/cobra.(*Command).execute
github.com/spf13/cobra@v1.6.1/command.go:916
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/cobra@v1.6.1/command.go:1044
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/cobra@v1.6.1/command.go:968
main.main
helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
runtime/proc.go:250
runtime.goexit
runtime/asm_amd64.s:1598
INSTALLATION FAILED
main.newInstallCmd.func2
helm.sh/helm/v3/cmd/helm/install.go:147
github.com/spf13/cobra.(*Command).execute
github.com/spf13/cobra@v1.6.1/command.go:916
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/cobra@v1.6.1/command.go:1044
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/cobra@v1.6.1/command.go:968
main.main
helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
runtime/proc.go:250
runtime.goexit
runtime/asm_amd64.s:1598

What's your helm version?

version.BuildInfo{Version:"v3.12.1", GitCommit:"f32a527a060157990e2aa86bf45010dfb3cc8b8d", GitTreeState:"clean", GoVersion:"go1.20.5"}

What's your kubectl version?

WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version. Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.3", GitCommit:"25b4e43193bcda6c7328a6d147b1fb73a33f1598", GitTreeState:"clean", BuildDate:"2023-06-14T09:47:38Z", GoVersion:"go1.20.5", Compiler:"gc", Platform:"darwin/amd64"} WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version. Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.3", GitCommit:"25b4e43193bcda6c7328a6d147b1fb73a33f1598", GitTreeState:"clean", BuildDate:"2023-06-14T09:47:38Z", GoVersion:"go1.20.5", Compiler:"gc", Platform:"darwin/amd64"} Kustomize Version: v5.0.1 Server Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.6+k3s1", GitCommit:"3b1919b0d55811707bd1168f0abf11cccc656c26", GitTreeState:"clean", BuildDate:"2023-06-26T17:51:14Z", GoVersion:"go1.19.10", Compiler:"gc", Platform:"linux/amd64"}

Which chart?

kube-prometheus-stuck

What's the chart version?

version: 48.1.1

What happened?

do the deployment but the deployment does not finish or create any resource since i am getting the error

What you expected to happen?

No response

How to reproduce it?

No response

Enter the changed values of values.yaml?

No response

Enter the command that you execute and failing/misfunctioning.

helm install prometheus --namespace monitoring --wait --debug -f values.yaml ./

Anything else we need to know?

No response

@aagutu aagutu added the bug Something isn't working label Jul 20, 2023
@zeritti zeritti changed the title [name of the chart e.g. prometheus-kube-stack] Issue Title [kube-prometheus-stack] data: Too long: must have at most 1048576 bytes Jul 20, 2023
@dongjiang1989
Copy link
Member

Maybe you execute:

$ helm template prometheus --namespace monitoring --wait --debug -f values.yaml ./ > allinone.yaml
$ kubectl create -f allinone.yaml

@helletheone
Copy link

i have the same issue

@fumanne
Copy link

fumanne commented Sep 19, 2023

same error.... what's the fucking bug... 3345 no perfect solution!!

@eumel8
Copy link

eumel8 commented Mar 24, 2024

yes, annoying. Just another workaround:

$ helm template cluster-monitoring oci://ghcr.io/prometheus-community/charts/kube-prometheus-stack --version 57.1.1 | kubectl apply -f - --server-side --force-conflicts

but you will lose the Helm history feature. If you are interested in a better solution, you should vote for helm/community#312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants