<p>i have lots of deployments yaml files and lots of services yaml files, i want to know if it is possible to execute all the yaml files at once ?
i tried this command:</p>
<pre><code>kubectl create -f *.yaml
</code></pre>
<p>But it's not working </p>
<p>Thanks</p>

coolguy2021
<p>Addition to @Harsh answer.</p>
<p>Apply resources from a directory:</p>
<pre><code>kubectl apply -k dir/
</code></pre>
<p>Include the sub directories to include all manifest files from sub-directories.</p>
<pre><code>  kubectl apply -R -f dir/
</code></pre>
<blockquote>
<p>-R, --recursive=false: Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests
organized within the same directo</p>
</blockquote>
