# Help with applying Kustomization to default configuration

**URL:** <https://discuss.openedx.org/t/help-with-applying-kustomization-to-default-configuration/7937>\
**Category:** Site Operations Help\
**Tags:** tutor\
**Created:** [July 27, 2022, 2:26pm UTC](https://discuss.openedx.org/t/help-with-applying-kustomization-to-default-configuration/7937 "2022-07-27T14:26:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Fedoruk](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jan_fedoruk/32/3920_2.png) [@Jan\_Fedoruk](https://discuss.openedx.org/u/Jan_Fedoruk)\
**Post date:** [July 27, 2022, 2:26pm UTC](https://discuss.openedx.org/t/help-with-applying-kustomization-to-default-configuration/7937/1 "2022-07-27T14:26:31Z")

</div>

Hi,  
Me and my team are trying to implement Kustomization to our tutor repo so that we don’t have to use bash scripts in order to apply certain patches. I found this information ( [Kubernetes deployment — Tutor documentation](https://docs.tutor.overhang.io/k8s.html#technical-details) ) and from my understanding putting kustomization.yml in env-custom should be enough to override default configuration. Unfortunately when doing tutor k8s start the default config gets applied. We also tried tutor k8s apply --kustomize _path to custom kustomization yml_ but this also doesn’t work. Any help would be appreciated.

Best Regards  
Jan

---

<div class="post-metadata">

**Author:** ![MoisesGonzalezS](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/moisesgonzalezs/32/1996_2.png) [@MoisesGonzalezS](https://discuss.openedx.org/u/MoisesGonzalezS)\
**Post date:** [July 28, 2022, 2:46am UTC](https://discuss.openedx.org/t/help-with-applying-kustomization-to-default-configuration/7937/2 "2022-07-28T02:46:18Z")

</div>

I think that example was meant to be used with the `kubectl` directly instead of using Tutor as an interface. From what I [can see](https://github.com/overhangio/tutor/blob/4a808fa87bd1f72ec6cdad665abb25f05ff8ec23/tutor/commands/k8s.py#L500-L506) `tutor k8s apply` will allways run `kubectl apply --kustomize env`.

Depending on your needs you may want to use a custom plugin that uses the [strategic merge capabilities of kustomize](https://github.com/overhangio/tutor/blob/master/tutor/templates/kustomization.yml#L62-L68). You can find more details in this PR: [tutor#686](https://github.com/overhangio/tutor/pull/686).

---

<div class="post-metadata">

**Author:** ![Jan\_Fedoruk](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jan_fedoruk/32/3920_2.png) [@Jan\_Fedoruk](https://discuss.openedx.org/u/Jan_Fedoruk)\
**Post date:** [August 2, 2022, 8:43am UTC](https://discuss.openedx.org/t/help-with-applying-kustomization-to-default-configuration/7937/3 "2022-08-02T08:43:34Z")

</div>

Okay, that would make documentation somewhat confusing (at least for me) but Your solution sounds as good as kustomization. Thank You very much.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/e/e0015f89e879bc75925b71fd11133ab15fe98297.png) [@system](https://discuss.openedx.org/u/system)\
**Post date:** [October 31, 2022, 8:44am UTC](https://discuss.openedx.org/t/help-with-applying-kustomization-to-default-configuration/7937/4 "2022-10-31T08:44:16Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
