error:
error validating data: ValidationError(Deployment.spec): missing required field “selector” in io.k8s.api.apps.v1.DeploymentSpec; if you choose to ignore these errors, turn validation off with --validate=false
solution:
Kubernetes基础:Deployments从beta版本到v1的变化对应方法