microservices-patterns / ftgo-application

Example code for the book Microservice patterns
Other
3.35k stars 1.29k forks source link

kubernetes deploy error: no matches for kind "StatefulSet" in version "apps/v1beta1" #124

Open everyhook1 opened 3 years ago

everyhook1 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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