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

no matches for kind "Deployment" in version "extensions/v1beta1" #1236

Open
gjcarneiro opened this issue Jan 15, 2020 · 2 comments
Open

no matches for kind "Deployment" in version "extensions/v1beta1" #1236

gjcarneiro opened this issue Jan 15, 2020 · 2 comments

Comments

@gjcarneiro
Copy link

@gjcarneiro gjcarneiro commented Jan 15, 2020

This is generating:

apiVersion: extensions/v1beta1 
kind: Deployment

This Deployment version was deprecated and no longer works in recent versions of k8s (e.g. 1.16).

Now you have to specify apiVersion: apps/v1 and modify slightly the template (labelSelector field needed).

@hangyan

This comment has been minimized.

Copy link
Member

@hangyan hangyan commented Jan 16, 2020

This issue has been fixed by pr #1207 . It will be released in the next month. Sorry for you inconvenient

@mash1t

This comment has been minimized.

Copy link

@mash1t mash1t commented Jan 26, 2020

fyi Workaround for minikube (until release):
minikube start --extra-config=apiserver.runtime-config=apps/v1beta1=true,extensions/v1beta1/deployments=true

General workaround for kube-apiserver:
add this line to the command section at kube-apiserver.yaml:
- --runtime-config=apps/v1beta1=true,extensions/v1beta1/deployments=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.