<p>I am trying to deploy a docker image through Jenkins.</p>

<p><code>kubectl --namespace=dev apply -f k8s/dev/</code></p>

<p>I receive this error message.</p>

<pre><code>dev apply -f k8s/services/ error: unable to recognize "k8s/services/config-server.yaml": no matches for kind "Service" in version "v1"
</code></pre>

krupa alaiya
<p>In your yaml file look like there is an issue in service version.</p>

<p>check for the service compatibility with your kubernetes version.also try applying the command the <code>kubectl apply -f &lt;filename&gt; -n &lt;namespacename&gt;</code></p>

<p>you can also try : <code>kubectl apply -f &lt;filename&gt; -n &lt;namespacename&gt; --validate=false</code></p>
