<p>I try  to  run this command</p>
<pre><code>kubectl patch deployment w-app-kuku-com -n stage -p '{&quot;spec&quot;:{&quot;template&quot;:{&quot;spec&quot;:{&quot;containers&quot;:[{&quot;livenessProbe&quot;:{&quot;successThreshold&quot;: &quot;5&quot;}}]}}}}'
</code></pre>
<p>And get this error</p>
<pre><code>Error from server: map: map[livenessProbe:map[successThreshold:5]] does not contain declared merge key: name
</code></pre>
<p>I try  to  change livenessProbe or ReadnesProbe parameters for example successThreshold but cant !</p>

Dimitri Goldshtein
<blockquote>
<p>successThreshold: Minimum consecutive successes for the probe to be
considered successful after having failed. Defaults to 1. <strong>Must be 1
for liveness and startup Probes</strong>. Minimum value is 1.</p>
</blockquote>
<p>Asserted from <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes" rel="nofollow noreferrer">here</a>, you can't patch <code>successThreshold</code> to other value beside setting it to 1 for <code>livenessProbe</code>.</p>
