# How to persist galaxy-ng data in a k8s environment?

**URL:** <https://forum.ansible.com/t/how-to-persist-galaxy-ng-data-in-a-k8s-environment/5070>\
**Category:** Get Help\
**Tags:** kubernetes, galaxy-ng\
**Created:** [April 22, 2024, 3:51pm UTC](https://forum.ansible.com/t/how-to-persist-galaxy-ng-data-in-a-k8s-environment/5070 "2024-04-22T15:51:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alonso\_Diaz\_Sobrino](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alonso_diaz_sobrino/32/2963_2.png) [@Alonso\_Diaz\_Sobrino](https://forum.ansible.com/u/Alonso_Diaz_Sobrino)\
**Post date:** [April 22, 2024, 3:51pm UTC](https://forum.ansible.com/t/how-to-persist-galaxy-ng-data-in-a-k8s-environment/5070/1 "2024-04-22T15:51:04Z")

</div>

Hi,  
I want to persist my galaxy-ng data in a kubernetes persistent volume but I dont know where is the data installed inside the container.

Thank you in advanced

---

<div class="post-metadata">

**Author:** ![kurokobo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kurokobo/32/182_2.png) [@kurokobo](https://forum.ansible.com/u/kurokobo)\
**Post date:** [April 23, 2024, 1:07am UTC](https://forum.ansible.com/t/how-to-persist-galaxy-ng-data-in-a-k8s-environment/5070/2 "2024-04-23T01:07:32Z")

</div>

Hi, how did you deploy your galaxy\_ng on Kubernetes?

---

<div class="post-metadata">

**Author:** ![Alonso\_Diaz\_Sobrino](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alonso_diaz_sobrino/32/2963_2.png) [@Alonso\_Diaz\_Sobrino](https://forum.ansible.com/u/Alonso_Diaz_Sobrino)\
**Post date:** [April 23, 2024, 8:05am UTC](https://forum.ansible.com/t/how-to-persist-galaxy-ng-data-in-a-k8s-environment/5070/3 "2024-04-23T08:05:12Z")

</div>

I’ve deployed it manually using yml files. But what i want to know is how galaxy-ng persist it data because when I switch off the virtual machine, galaxy-ng pod get down and all the internal data get lose.

---

<div class="post-metadata">

**Author:** ![kurokobo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kurokobo/32/182_2.png) [@kurokobo](https://forum.ansible.com/u/kurokobo)\
**Post date:** [April 23, 2024, 12:23pm UTC](https://forum.ansible.com/t/how-to-persist-galaxy-ng-data-in-a-k8s-environment/5070/4 "2024-04-23T12:23:10Z")

</div>

> [@Alonso\_Diaz\_Sobrino](#):
>
> I’ve deployed it manually using yml files

Indeed it is technically possible, but a bit hard way.

Even if you want to do so, first of all, I recommend you to deploy Galaxy NG by using Galaxy Operator to know what the designed setup is, where the PVCs are mounted on which pods, how configuration files for Nginx are designed, etc…

> **[Galaxy-Operator](https://ansible.readthedocs.io/projects/galaxy-operator/en/latest/)**
>
> Galaxy-Operator
