mysql-operator icon indicating copy to clipboard operation
mysql-operator copied to clipboard

StatefulSet stable in 1.9 (v1beta1.StatefulSet)

Open owainlewis opened this issue 6 years ago • 6 comments

We use v1beta1.StatefulSet but StatefulSets are stable in K8s 1.9. We should probably update our code to reflect this when appropriate.

https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/

owainlewis avatar May 21 '18 14:05 owainlewis

Presumably, this would necessarily result in our dropping support for Kubernetes 1.8? That's not really an option in my view until 1.11 is released and even then we'll need to check that there are no internal 1.8 use-cases that we'd be breaking for little/no benefit.

prydie avatar Jun 13 '18 11:06 prydie

@prydie yes it would require dropping support and agree it's a very minor internal issue. Going to leave this here as a tracking issue if nothing else.

owainlewis avatar Jun 13 '18 11:06 owainlewis

With the release of Kubernetes 1.11 as per our backwards compatibility policy (last three minor versions), we can now drop support for 1.8.x. @owainlewis Shall we move to apps/v1 in the next release?

prydie avatar Jul 06 '18 12:07 prydie

Hi! I think you should revisit this issue with Kubernetes 1.16 now released. I tried installing the operator in minikube running 1.16 and got the following error: Error: apiVersion "apps/v1beta1" in mysql-operator/templates/03-deployment.yaml is not available. In other words, unless you update the API versions, things will not work on new clusters starting with 1.16.

Changing apps/v1beta1 to apps/v1 in the mentioned template solved the installation problem, but it still isn't possible to create a cluster. The following is logged if I try:

I1009 13:05:29.854142       1 reflector.go:240] Listing and watching *v1beta1.StatefulSet from github.com/oracle/mysql-operator/vendor/k8s.io/client-go/informers/factory.go:87
E1009 13:05:29.855931       1 reflector.go:205] github.com/oracle/mysql-operator/vendor/k8s.io/client-go/informers/factory.go:87: Failed to list *v1beta1.StatefulSet: the server could not find the requested resource

lentzi90 avatar Oct 09 '19 13:10 lentzi90

Thanks @lentzi90. You're correct. We need to look into this and publish a new release.

owainlewis avatar Oct 17 '19 12:10 owainlewis

Any updates so far? Is there a quick workaround for that issue?

petershaw avatar Nov 03 '19 11:11 petershaw