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 deploy error: no matches for kind "StatefulSet" in version "apps/v1beta1" #124

Open
everyhook1 opened this issue Sep 23, 2020 · 2 comments

Comments

@everyhook1
Copy link

everyhook1 commented Sep 23, 2020

hello, i found a question when i deploy with kubernetes

./deployment/kubernetes/scripts/kubernetes-deploy-all.sh

secret/ftgo-db-secret created
service/ftgo-dynamodb-local created
job.batch/ftgo-dynamodb-local-init created
service/ftgo-kafka created
service/ftgo-mysql created
service/ftgo-zookeeper created
unable to recognize "/dev/fd/63": no matches for kind "StatefulSet" in version "apps/v1beta1"
unable to recognize "/dev/fd/63": no matches for kind "StatefulSet" in version "apps/v1beta1"
unable to recognize "/dev/fd/63": no matches for kind "StatefulSet" in version "apps/v1beta1"
unable to recognize "/dev/fd/63": no matches for kind "StatefulSet" in version "apps/v1beta1"

i use docker desktop with kubernetes v1.16.5

thanks for your help ☺

@asn25
Copy link

asn25 commented Sep 23, 2020

Hi,

I remember I was fixing that locally on my environment by editing of deployment YAML files for Kubernetes. Don't recall all details now, but you can check this:

https://stackoverflow.com/questions/58481850/no-matches-for-kind-deployment-in-version-extensions-v1beta1

"You need to change Deployment and StatefulSet apiVersion to apiVersion: apps/v1"

( in your yaml sources it's probably apiVersion: apps/v1beta1 )

Cheers,
Andrey

@everyhook1
Copy link
Author

everyhook1 commented Sep 23, 2020

Hi,

I remember I was fixing that locally on my environment by editing of deployment YAML files for Kubernetes. Don't recall all details now, but you can check this:

https://stackoverflow.com/questions/58481850/no-matches-for-kind-deployment-in-version-extensions-v1beta1

"You need to change Deployment and StatefulSet apiVersion to apiVersion: apps/v1"

( in your yaml sources it's probably apiVersion: apps/v1beta1 )

Cheers,
Andrey

thanks, finally i resolved it with
kubectl api-resources
kubectl explain
which could tell me current version.
企业微信截图_cba9a069-abef-474d-ab11-558b20c45d0f

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

No branches or pull requests

2 participants