# Full customization of deployment with kubernetes

**URL:** <https://forums.percona.com/t/full-customization-of-deployment-with-kubernetes/15759>\
**Category:** Percona Operator for MongoDB\
**Created:** [May 20, 2022, 8:54am UTC](https://forums.percona.com/t/full-customization-of-deployment-with-kubernetes/15759 "2022-05-20T08:54:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamoser](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jamoser](https://forums.percona.com/u/jamoser)\
**Post date:** [May 20, 2022, 8:54am UTC](https://forums.percona.com/t/full-customization-of-deployment-with-kubernetes/15759/1 "2022-05-20T08:54:14Z")

</div>

In order to that you have to backup the generated secrets which does not reflect the philosophy of today DEVOPS. What is needed is a fully customizable deployment … created this ticket and possibly others have ideas too:

[https://jira.percona.com/browse/K8SPSMDB-698](https://jira.percona.com/browse/K8SPSMDB-698)

---

<div class="post-metadata">

**Author:** ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)\
**Post date:** [May 20, 2022, 10:11am UTC](https://forums.percona.com/t/full-customization-of-deployment-with-kubernetes/15759/2 "2022-05-20T10:11:00Z")

</div>

Hey @jamoser ,

maybe I’m wrong, but data-at-rest key is generated automatically only if you have not set `security.encryptionKeySecret`.

Can you generate this key and set it as a regular secret?

---

<div class="post-metadata">

**Author:** ![jamoser](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jamoser](https://forums.percona.com/u/jamoser)\
**Post date:** [May 20, 2022, 11:11am UTC](https://forums.percona.com/t/full-customization-of-deployment-with-kubernetes/15759/3 "2022-05-20T11:11:01Z")

</div>

Hi @Sergey_Pronin

security.encryptionKeySecret : May be it would make sense if this is set by default in your /deploy example (like the user secret)

mongodb-key : do you happen to know for what this key is ?

Thanks  
John
