If I'm trying to do a command like kubectl apply -f dir1/subdir1/deployment.yml
, and I have subdir1
, subdir2
, etc, how can I run that command for all of them at once?
I tried kubectl apply -f dir1/*/deployment.yml
and that passes all the deployment.yml
to the single -f
flag, making it invalid as that flag accepts a single argument.
I've also tried kubectl apply -f dir1/{subdir1,subdir2}/deployment.yml
with no luck.
PS: I'm using zsh for my shell with oh-my-zsh+p10k if that matters.