helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

[prometheus] Installation error: unknown field "minReadySeconds" in io.k8s.api.apps.v1.StatefulSetSpec

Open yunnniverse opened this issue 10 months ago • 1 comments

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

I tried to use scaphandre and prometheus for kubernetes cluster.

I entered commands below. $ helm repo add prometheus-community https://prometheus-community.github.io/helm-charts $ helm repo add kube-state-metrics https://kubernetes.github.io/kube-state-metrics $ helm repo update

and after that, I entered like: $ helm install prometheus prometheus-community/prometheus
--set alertmanager.persistentVolume.enabled=false
--set server.persistentVolume.enabled=false

But there is always an error. about unknown field "minReadySeconds" in statefulsetspec.

What's your helm version?

version.BuildInfo{Version:"v3.14.4", GitCommit:"81c902a123462fd4052bc5e9aa9c513c4c8fc142", GitTreeState:"clean", GoVersion:"go1.21.9"}

What's your kubectl version?

Client Version: v1.30.0 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.21.1

Which chart?

prometheus-community/prometheus

What's the chart version?

unspecified

What happened?

Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(StatefulSet.spec): unknown field "minReadySeconds" in io.k8s.api.apps.v1.StatefulSetSpec

What you expected to happen?

complete installation

How to reproduce it?

No response

Enter the changed values of values.yaml?

NONE

Enter the command that you execute and failing/misfunctioning.

helm install prometheus prometheus-community/prometheus
--set alertmanager.persistentVolume.enabled=false
--set server.persistentVolume.enabled=false

Anything else we need to know?

No response

yunnniverse avatar Apr 19 '24 05:04 yunnniverse

Duplicate #4333. At the moment, release 25.12.0 should work with your cluster.

zeritti avatar Apr 19 '24 08:04 zeritti

@zeritti , how to fix it ? I still got this error

ninjacoderz avatar Sep 14 '24 13:09 ninjacoderz