问题:\u00a0\u00a0\u00a0

error validating data: [ValidationError(Deployment): unknown field "\u00a0\u00a0name" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0replicas" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0\u00a0\u00a0app" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0app" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0-\u00a0name" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0app" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0env" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0image" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0-\u00a0containerPort" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0-\u00a0mountPath" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0-\u00a0name" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0path" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0type" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0name" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment): unknown field "\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0value" in io.k8s.api.apps.v1.Deployment]; if you choose to ignore these errors, turn validation off with --validate=false

解决方法

把文件中的空格替换成键盘空格
上一篇:K8S Controller Deplpyment


下一篇:k8s使用kubectl命令部署nginx并以nodeport方式暴露端口