Can you please help me figure out why kubectl apply fails?
When I try to run kubectl apply -k k8s/overlays/dev
it fails with error message "error: rawResources failed to read Resources: Load from path ../../base failed: '../../base' must be a file"
But if I run kustomize build k8s/overlays/dev
it works fine.
folder structure
|____k8s
| |____overlays
| | |____dev
| | | |____kustomization.yaml
| |____base
| | |____deployment.yaml
| | |____kustomization.yaml
Run Code Online (Sandbox Code Playgroud)
k8s/base/deployment.yaml
|____k8s
| |____overlays
| | |____dev
| | …
Run Code Online (Sandbox Code Playgroud)