K8s multiple objects in YAML File

It took me longer than I expected to find the answer to this question,

If I want to have multiple objects defined in the same YAML file, how do I do it and how do I delineate them?

The answer is just — between them, then you can run your

kubectl apply -f yourfile.yaml

And all your objects will get created / applied.

Leave a Reply

Your email address will not be published. Required fields are marked *