<p>I recently started working on microservices. I am building my docker image and want to deploy it on kubernetes. while creating a pod.yaml file I started getting the below error.</p>

<p>Command : </p>

<pre><code>kubectl create -f podservice.yaml
</code></pre>

<p>Error :</p>

<pre><code>error: the path "podcpeservice.yml" does not exist
</code></pre>

<p>Tried using the helpfor kubectl create -f help. An example in the help document is </p>

<p>command :</p>

<pre><code>kubectl create -f ./pod.json
</code></pre>

<p>Even the above command gives the same error. Not able to figure out what is the problem. tried removing <code>./</code></p>

<p>I am using centos 7 on virtual-box with windows 7 as host.</p>

<p>Tushar,</p>
<p>First you need to create the deployment yml file using one of the editor, then pass the file as argument for kubectl command.</p>
<p>eg.</p>
<p>kubernets team already created this deployment file. you use kubectl to deploy.</p>
<pre><code>kubectl apply -f https://k8s.io/examples/controllers/nginx-deployment.yaml
</code></pre>
