<p>Sometimes people create a deployment without liveniess/readiness probe. How can we patch a probe for that deployment.I try to use PATCH + "Content-Type:application/strategic-merge-patch+json" it doesn't work.</p>

<p>On the other hand, if we created a deployment with probe how can we remove it?</p>

<p>You should be able to do </p>

<pre><code>kubectl edit deployment &lt;your deployment&gt;
</code></pre>

<p>and the yaml from the currently running deployment should pop up in your default editor. </p>

<p>Edit it (add/remove probe) and save and kubectl will apply the new file automatically.</p>

<p>Of course, a better way is to have the deployment yaml on disk, change it to contain the probe and run</p>

<pre><code>kubectl apply -f &lt;the yaml file&gt;
</code></pre>
