error: error validating “ingress-tomcat6.yaml“: error validating data: [ValidationError(Ingress.spec

kubectl apply -f ingress-tomcat6.yaml 

error: error validating "ingress-tomcat6.yaml": error validating data: [ValidationError(Ingress.spec.rules[0].http.paths[0]): unknown field "serviceName" in io.k8s.api.extensions.v1beta1.HTTPIngressPath, ValidationError(Ingress.spec.rules[0].http.paths[0]): unknown field "servicePort" in io.k8s.api.extensions.v1beta1.HTTPIngressPath, ValidationError(Ingress.spec.rules[0].http.paths[0]): missing required field "backend" in io.k8s.api.extensions.v1beta1.HTTPIngressPath]; if you choose to ignore these errors, turn validation off with --validate=false

ingress的yaml文件-backend下一行少了一个空格

修改前

error: error validating “ingress-tomcat6.yaml“: error validating data: [ValidationError(Ingress.spec_第1张图片

修改后

error: error validating “ingress-tomcat6.yaml“: error validating data: [ValidationError(Ingress.spec_第2张图片 

 

 

你可能感兴趣的:(k8s)