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

unable to recognize "vernemq-cluster.yaml": no matches for kind "StatefulSet" in version "apps/v1beta1" #6

Open
jociz68 opened this issue Jun 11, 2021 · 0 comments

Comments

@jociz68
Copy link

jociz68 commented Jun 11, 2021

Hi,
I could not create StatefulSet since following error occurred:
kubectl apply -f vernemq-cluster.yaml
namespace/vernemq created
secret/vernemq-certifications created
secret/vernemq-passwd created
service/vernemq created
service/mqtt created
service/mqtts created
error: unable to recognize "vernemq-cluster.yaml": no matches for kind "StatefulSet" in version "apps/v1beta1"

kubernetes version:
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:23:52Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-13T13:20:00Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}

Solution: apiVersion: apps/v1 in definition of StatefulSet instead of apps/v1beta1

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

1 participant