# InitContainer image update in StatefulSet

**URL:** <https://discuss.kubernetes.io/t/initcontainer-image-update-in-statefulset/14455>\
**Category:** General Discussions\
**Created:** [January 13, 2021, 2:18pm UTC](https://discuss.kubernetes.io/t/initcontainer-image-update-in-statefulset/14455 "2021-01-13T14:18:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![feloy](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/feloy/32/3669_2.png) [@feloy](https://discuss.kubernetes.io/u/feloy)\
**Post date:** [January 13, 2021, 2:18pm UTC](https://discuss.kubernetes.io/t/initcontainer-image-update-in-statefulset/14455/1 "2021-01-13T14:18:12Z")

</div>

Asking for help? Comment out what you need so we can get more information to help you!

### Cluster information:

Kubernetes version: v1.16.15-gke.6000  
Cloud being used: GKE

When updating the image of an InitContainer for a StatefulSet, a new Pod is not started.

Is it a feature? Why?

---

<div class="post-metadata">

**Author:** ![mrbobbytables](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/mrbobbytables/32/7_2.png) [@mrbobbytables](https://discuss.kubernetes.io/u/mrbobbytables)\
**Post date:** [January 13, 2021, 3:00pm UTC](https://discuss.kubernetes.io/t/initcontainer-image-update-in-statefulset/14455/2 "2021-01-13T15:00:38Z")

</div>

Can you double check your update strategy? `spec.updateStrategy`. If its set to `OnDelete` it’ll only update the instance once the current one is deleted.

---

<div class="post-metadata">

**Author:** ![feloy](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/feloy/32/3669_2.png) [@feloy](https://discuss.kubernetes.io/u/feloy)\
**Post date:** [January 13, 2021, 3:07pm UTC](https://discuss.kubernetes.io/t/initcontainer-image-update-in-statefulset/14455/3 "2021-01-13T15:07:36Z")

</div>

I have this config fr update Strategy:

```auto
  updateStrategy:
    rollingUpdate:
      partition: 0
    type: RollingUpdate

```
