<p>Currently I am practicing with Kubernetes resources like replicaSet , deployment and services. When I created my sample deployment and service for testing , I used <code>kube apply</code> command for creating the deployment and service into the Kubernetes cluster.That is properly working. </p>

<p>Now I am trying to make a end-to-end deployment using CI/CD pipeline. So when I am adding the deployment step in the <code>Jenkinsfile</code> , Can I use the <code>kube apply</code> command inside Jenkinsfile. Means If I am continuously committing in my SVN repo , changes will get update by using <code>kube apply</code> command? For each change I am making to repo need to reflect in deployment.</p>

<p>Can I use <code>kube apply</code> command for update also in Kubernetes ? Or Do I need to use <code>rollout</code> for updation of Kubernetes resource? </p>

Mr.DevEng
<p>If I am continuously committing in my SVN repo , changes will get update by using kube apply command?
Ans:Yes</p>

<p>Below is the definition from kube document</p>

<blockquote>
  <p>Apply is a command that will update a Kubernetes cluster to match
  state defined locally in files.</p>
</blockquote>

<p><a href="https://kubectl.docs.kubernetes.io/pages/app_management/apply.html" rel="nofollow noreferrer">https://kubectl.docs.kubernetes.io/pages/app_management/apply.html</a></p>
