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下一行少了一个空格

修改前

修改后

 

 

 

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐