kustomize and kubectl not finding CRDs kustomize and kubectl not finding CRDs kubernetes kubernetes

kustomize and kubectl not finding CRDs


I came across your question when working on an issue with trying to bring up Traefik with Kustomize on Kubernetes... My issue was resolved by ensuring the namespace was accurate in my kustomization.yml file. In my case, I had to change it to match what was in the other yml files in my deployment. Not sure if you eventually figured it out but I figured I would respond in case that was it...


i met the same issue, i guess it is about that kubetcl could not find the resource if trying to install the crd on the cluster first, to verify this, could running the command kubectl api-resources, new crd will not in the list, but if you apply the crd first, then the crd record will be there, then kustomize build . | kubectl apply -f - can works fine. But i really do not know how to add the resource firstly.