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

Kubernetes Tasks only work with k8s 1.13, 1.14, 1.15 #3195

Closed
gaby opened this issue Aug 21, 2020 · 5 comments
Closed

Kubernetes Tasks only work with k8s 1.13, 1.14, 1.15 #3195

gaby opened this issue Aug 21, 2020 · 5 comments
Labels
integrations Related to integrations with other services

Comments

@gaby
Copy link

gaby commented Aug 21, 2020

Description

The official kubernetes python client only supports up to k8s 1.15. As stated on their github page.

Compatibility matrix

Kubernetes 1.13 Kubernetes 1.14 Kubernetes 1.15
client-python 9.0 +- +-
client-python 10.0 +- +-
client-python 11.0 +- +-
client-python HEAD +- +- +-

k8s 1.15 is EOL and k8s 1.16 will be EOL in 10-2020.

See: https://github.com/kubernetes/sig-release/blob/master/releases/patch-releases.md

This issue is for tracking the release of Python Kubernetes Client 12.0.0 which will support k8s 1.16 and others.

Behavior

Currently if you try to deploy with CreateNamespacedDeployment Task or any kind of k8s Task, you will get a 404 error from the Kubernetes API due to the fact that both ExtensionsV1beta1Api and AppsV1beta1Api are deprecated in Kubernetes 1.16 and forward.

See: kubernetes-client/python#1232
See: kubernetes-client/python#1052

@joshmeek
Copy link

Thanks for opening @gabrielcalderon! I'm going to have to pull 12.0.0a1 and give it a test. I need to look further but I'm guessing that AppsV1Api will be the one to use

@joshmeek joshmeek added dependencies integrations Related to integrations with other services labels Aug 21, 2020
@gaby
Copy link
Author

gaby commented Aug 22, 2020

@joshmeek I was able to list my deployments using k8s client directly with AppsV1Api

@gaby
Copy link
Author

gaby commented Oct 14, 2020

@joshmeek They are about to merge version 12.0 :-)

kubernetes-client/python#1280

@joshmeek
Copy link

joshmeek commented Oct 14, 2020

@gabrielcalderon Awesome! Do you want to update the tasks to no longer use the beta clients?

@gaby
Copy link
Author

gaby commented Oct 15, 2020

@joshmeek Sure, I can take a look during the weekend. They just did the official release.

https://github.com/kubernetes-client/python/releases/tag/v12.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrations Related to integrations with other services
Projects
None yet
Development

No branches or pull requests

2 participants