小编Ale*_*vas的帖子

kubectl apply -k throws Error: rawResources failed to read Resources: Load from path ../../base failed: '../../base' must be a file

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)

kubernetes kubectl kustomize

8
推荐指数
1
解决办法
1389
查看次数

标签 统计

kubectl ×1

kubernetes ×1

kustomize ×1