<p>I am trying to update entrypoint in specific container</p>
<p>the struture is :
statefulset -&gt; list of pods -&gt; specificPod -&gt; specific contianer</p>
<p>I tried to do that using the javascript client and got the following:</p>
<pre><code>    body: {
      kind: 'Status',
      apiVersion: 'v1',
      metadata: {},
      status: 'Failure',
      message: 'Pod &quot;name-0&quot; is invalid: spec: Forbidden: pod updates may not change fields other than `spec.containers[*].image`, `spec.initContainers[*].image`, `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations)\n' +
        '  core.PodSpec{\n' +
</code></pre>
<p>I did the following:</p>
<pre><code>  for(let c of pod.spec.containers){
        if(c.name === 'name'){
            console.log('in name contianer');
            c.args = ['test;sleep 3600'];
        }
    }
    
await coreV1Api.replaceNamespacedPod(podName,namespace, pod);


</code></pre>
<p>this is works if I will update the stateful set args but I need only for specific pod</p>
<p>is it possible?</p>

Tuz
<p>This is not possible. The whole point of using a <code>StatefulSet</code> is to have a bunch of <code>Pods</code> that are basically identical. It is the precise goal of the <code>Controller Manager</code> to reconcile the <code>StatefulSet</code> resource and ensure there are <code>replicas</code> number of <code>Pods</code> that match the <code>StatefulSet</code> spec.</p>
<p>If you want to have different pods you need to have different StatefulSets.</p>
