k8s getting crds and version
It's quite important to understand how to get the crds and version define correctly in a yaml file.
For example, let's say i bump into this error
error: resource mapping not found for name: "httpbin" namespace: "" from ".\\httpbin-gateway.yaml": no matches for kind "DestinationRule" in version "networking.istio.io/v1alpha"
I probably got the apiVersion number wrong. So let's use kubectl get crd/destinationrules.networking.istio.io -o yaml | more to check this out.
I should be using v1alpha3, as that would resolve it.
Comments