# Awx kubernetes clustering

**URL:** <https://forum.ansible.com/t/awx-kubernetes-clustering/42040>\
**Category:** Get Help\
**Tags:** awx, kubernetes\
**Created:** [April 25, 2025, 9:09pm UTC](https://forum.ansible.com/t/awx-kubernetes-clustering/42040 "2025-04-25T21:09:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alainseys](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alainseys/32/2757_2.png) [@alainseys](https://forum.ansible.com/u/alainseys)\
**Post date:** [April 25, 2025, 9:09pm UTC](https://forum.ansible.com/t/awx-kubernetes-clustering/42040/1 "2025-04-25T21:09:26Z")

</div>

Hello today i made the switch to awx on kubernetes i have a 3 node setup. (before i run it on a singles node with no shared storage)

I have setup awx so it uses NFS as persistent storage but i saw that the database is not replicated is there a paremeter to set the replication for the database.

Or is there a seperate approuch?  
database is also on the shared storage, you can read my configs bellow

[https://raw.githubusercontent.com/alainseys/boilerplates/refs/heads/main/awx/awx.yaml](https://raw.githubusercontent.com/alainseys/boilerplates/refs/heads/main/awx/awx.yaml)  
[https://raw.githubusercontent.com/alainseys/boilerplates/refs/heads/main/awx/kustomization.yaml](https://raw.githubusercontent.com/alainseys/boilerplates/refs/heads/main/awx/kustomization.yaml)  
[https://raw.githubusercontent.com/alainseys/boilerplates/refs/heads/main/awx/pv.yaml](https://raw.githubusercontent.com/alainseys/boilerplates/refs/heads/main/awx/pv.yaml)  
[https://raw.githubusercontent.com/alainseys/boilerplates/refs/heads/main/awx/pvs.yaml](https://raw.githubusercontent.com/alainseys/boilerplates/refs/heads/main/awx/pvs.yaml)

---

<div class="post-metadata">

**Author:** ![wayt](https://avatars.discourse-cdn.com/v4/letter/w/3be4f8/32.png) [@wayt](https://forum.ansible.com/u/wayt)\
**Post date:** [April 25, 2025, 10:01pm UTC](https://forum.ansible.com/t/awx-kubernetes-clustering/42040/2 "2025-04-25T22:01:48Z")

</div>

You need to provide a database connection string and handle the database availability yourself in that situation. There are some good operators for local cluster highly available Postgres.

[Docs](https://ansible.readthedocs.io/projects/awx-operator/en/latest/user-guide/database-configuration.html#external-postgresql-service)
