Difference between revisions of "Kubectl apply -f ingress.yaml"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
   
 
   
 
  Solution: change [[networking.k8s.io/v1beta1]] for [[networking.k8s.io/v1]] or your K8s version: kubectl api-resources | grep [[networking.k8s.io]]
 
  Solution: change [[networking.k8s.io/v1beta1]] for [[networking.k8s.io/v1]] or your K8s version: kubectl api-resources | grep [[networking.k8s.io]]
   
+
 
 +
  [[error: error validating]] "ingress.yaml": [[error validating data]]: [ValidationError([[Ingress.spec.rules]][0].http.paths[0].backend): unknown field "[[serviceName]]" in [[io.k8s.api.networking.v1.IngressBackend]], ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "[[servicePort]]" in [[io.k8s.api.networking.v1.IngressBackend]]]; if you choose to ignore these errors, turn validation off with [[--validate=false]]
 +
 
 +
== Related ==
 
* [[kubectl create ingress --help]]
 
* [[kubectl create ingress --help]]
 
* [[ingresses.networking.k8s.io]]
 
* [[ingresses.networking.k8s.io]]

Revision as of 17:56, 14 December 2023


error: resource mapping not found for name: "your-ingress" namespace: "your-namespace" from "ingress.yaml": no matches for kind "Ingress" in version "networking.k8s.io/v1beta1" ensure CRDs are installed first

Solution: change networking.k8s.io/v1beta1 for networking.k8s.io/v1 or your K8s version: kubectl api-resources | grep networking.k8s.io
error: error validating "ingress.yaml": error validating data: [ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "serviceName" in io.k8s.api.networking.v1.IngressBackend, ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "servicePort" in io.k8s.api.networking.v1.IngressBackend]; if you choose to ignore these errors, turn validation off with --validate=false

Related

See also

Advertising: