<p>Just wondering, let's say I have X Kubernetes <code>deployment.yaml</code>, <code>pod.yaml</code>, <code>persistedvolumecliam.yaml</code> and <code>service.yaml</code> files inside a directory.</p>
<p>The tutorials would tell us to do the following:</p>
<pre><code>kubectl apply -f frontend-service.yaml,redis-master-service.yaml,redis-slave-service.yaml,frontend-deployment.yaml,redis-master-deployment.yaml,redis-slave-deployment.yaml
</code></pre>
<p>Is there a way just to do something like:</p>
<pre><code>kubectl apply all
</code></pre>
<p>or</p>
<pre><code>kubectl apply -f *
</code></pre>
<p>or some variation thereof to spin all of the kube stuffs within on directory?</p>

<p>You can apply everything inside a directory with <code>kubectl apply -f /path/to/dir</code>. To include subdirectories use the paramter <code>-R</code>, like <code>kubectl apply -R -f /path/to/dir</code></p>
