<p>I am trying to create a deployment using its deployment yaml file in minikube.
I have saved the deployment file locally.Please share the minikube kubectl command to create the deployment from the yaml file.</p>

<p>Using native <code>kubectl</code> client you do this with the <code>kubectl apply</code> command and pass the <code>--filename</code> flag followed by the name of your yaml-file.</p>
<p>Example:</p>
<pre><code>kubectl apply --filename my-deployment.yaml
</code></pre>
<p>When using <a href="https://minikube.sigs.k8s.io/docs/handbook/kubectl/" rel="nofollow noreferrer">minikube kubectl</a> you prepend kubectl commands with <code>minikube </code> and pass the command name after <code>--</code>, e.g.</p>
<pre><code>minikube kubectl -- apply --filename my-deployment.yaml
</code></pre>
