Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

support for kubernetes 1.16+ #304

Open
Maannniii opened this issue Jan 25, 2020 · 3 comments
Open

support for kubernetes 1.16+ #304

Maannniii opened this issue Jan 25, 2020 · 3 comments

Comments

@Maannniii
Copy link

Maannniii commented Jan 25, 2020

Type: Bug

Affected Versions

MySQL Operator Version: All (tested with 0.2.0)
Kubernetes version: 1.16+

Behaviour:

mysql-operator doesn't run as expected due to the usage of deprecated APIs.

Expectation:

Should support and run properly in Kubernetes 1.16 and above. But runs properly only till version 1.15

Steps to reproduce:

  1. Install any version of Kubernetes 1.16 and above.
  2. Try to install mysql-operator using helm.

Possible Reasons:

  1. Deployment version has to be changed from apiVersion: apps/v1beta1 to apiVersion: apps/v1.
  2. CustomResourceDefinition has to be upgraded from apiextensions.k8s.io/v1beta1 to apiextensions.k8s.io/v1 with necessary addition of required objects.

Reference: Kunernetes Deprecations and Removals.

Reason for not taking pull request:

Beginner in Kubernetes and not sure how to work with CustomResourceDefinition.

@haneka2019
Copy link

haneka2019 commented Mar 30, 2020

Hi, I use the following workaround and it works: sudo nano /etc/kubernetes/manifests/kube-apiserver.yaml ; Go to section spec: -> containers: -> - command: And add this: - --runtime-config=apps/v1beta1=true,extensions/v1beta1/deployments=true.

@Maannniii
Copy link
Author

Hi, I use the following workaround and it works: sudo nano /etc/kubernetes/manifests/kube-apiserver.yaml ; Go to section spec: -> containers: -> - command: And add this: - --runtime-config=apps/v1beta1=true,extensions/v1beta1/deployments=true.

Thanks for your efforts. It is really appreciated.
However, I'm not sure whether this is applicable in cloud providers like AWS, GCP, DigitalOcean, AKS.

@mvukadinoff
Copy link

We're hitting this:

E0814 14:45:45.672805       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

Also v1beta1.StatefulSet has been depricated in 1.16

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants