rabbitmq-statefulset icon indicating copy to clipboard operation
rabbitmq-statefulset copied to clipboard

StatefulSet in version "v1beta1" cannot be handled as a StatefulSet

Open pastukhov opened this issue 7 years ago • 8 comments

Hello, i'm getting StatefulSet in version "v1beta1" cannot be handled as a StatefulSet when trying to do helm upgrade -i rmq --set environment=production --namespace=inra charts/rabbitmq/ on my kubernetes 1.8.4 with helm 2.6.2

pastukhov avatar Dec 06 '17 09:12 pastukhov

try this: apiVersion: apps/v1beta2

xarg avatar Dec 06 '17 17:12 xarg

Found an error: unable to parse quantity's suffix, parsing 1057 ...y":"100mi"... at

After removing removing limits i'm getting: Error: UPGRADE FAILED: failed to create resource: StatefulSet.apps "rmq" is invalid: [spec.selector: Required value, spec.template.metadata.labels: Invalid value: map[string]string{"app":"rmq"}: `selector` does not match template `labels`]

pastukhov avatar Dec 07 '17 09:12 pastukhov

Can you install https://github.com/technosophos/helm-template and see what's the output of the statefulset definition?

xarg avatar Dec 09 '17 00:12 xarg

Thanks! I'l try and report here.

pastukhov avatar Dec 11 '17 08:12 pastukhov

@pastukhov have you figured out the solution? I just pushed a new version to master tested it yesterday on GKE and it worked.

xarg avatar Jan 03 '18 18:01 xarg

I'l try. Now i'm first day after a vacations.

pastukhov avatar Jan 25 '18 15:01 pastukhov

Let me know. Also if it helps I wrote a blog post about it here: https://plugaru.org/2018/01/02/rabbitmq-celery-kubernetes-ha/

xarg avatar Jan 25 '18 16:01 xarg

I had the same issue. Finaly, the issue was coming from a malformed yaml ( in my case a memory limit with 100mi instead of 100Mi) It had nothing to do with the statefulset.

gorille avatar May 17 '18 13:05 gorille