S
S
shell_guy2022-01-30 23:36:18
bash
shell_guy, 2022-01-30 23:36:18

K8s how to run many yml?

Good day!
Please tell me how to run many yml files from one folder kubectl -f apply *.yml but it didn't work. For the folder, too, -k did not work
Maybe someone faced such a task, please share your experience how you managed to solve it
Thank you

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2022-01-31
@saboteur_kiev

ls -1 *.yml | xargs -n1 kubectl -f apply

P
paran0id, 2022-01-31
@paran0id

kubectl apply -f /путь-к-папкеwill apply all yaml from the folder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question