overlays -----> configuration1 ----> kustomization.yaml
|
|----> configuration2 ----> kustomization.yaml
resources ------> kustomization.yaml
# in file resources/kustomization.yaml
# for configuration1
resources:
- pvc.yaml
- deployment.yaml
- namespace.yaml
# for configuration2
resources:
- pvc.yaml
- network.yaml
- istio.yaml
end goal
kubectl apply -k overlays/configuration1
kubectl apply -k overlays/configuration2
I have an overlays folder that contains two folders. configuration1 and configuration2. In those folders I have a kustomization.yaml file. These two kustomization files call the same resource folder. configuration1 and configuration2 need to have a different list of resources specified. Can I create two different kustomize.yaml files in the resource folder or is there anyway to specify two different list of resources in the same kustomization.yaml?