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

error: unable to recognize "mysql.yaml": no matches for kind "Deployment" in version "v1" #120

Open
Chechengwen opened this issue Sep 30, 2019 · 2 comments

Comments

@Chechengwen
Copy link

[root@master naftis]# kubectl apply -n naftis -f mysql.yaml
persistentvolume/naftis-pv unchanged
secret/naftis-mysql unchanged
configmap/naftis-mysql-initialization unchanged
configmap/naftis-mysql-test unchanged
persistentvolumeclaim/naftis-mysql unchanged
service/naftis-mysql unchanged
pod/naftis-mysql-test configured
error: unable to recognize "mysql.yaml": no matches for kind "Deployment" in version "v1"

@Chechengwen
Copy link
Author

哥,怎么办,进行不下去了

@Chechengwen
Copy link
Author

k8s1.6下,解决了,改为:
apiVersion: apps/v1
kind: Deployment

spec:
selector:
matchLabels:
app: naftis-mysql

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