kubectl create -f hello-deployment.yaml 时报错
老师好:
报错配置文件和课件一样
error: error validating "hello-deployment.yaml": 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