# Installer PostgrSQL

Si vous souhaitez utiliser PostgreSQL, installez le maintenant.

L'installation se fait en suivant la documentation [PostgreSQL](/guides/postgresql.md)

La seule particularité tient à la configuration de UFW, il faut:

* Autoriser le traffic provenant du réseau privée ou du cluster si PostgreSQL est sur un serveur dédié
* Autoriser le traffic provenant des Pods si la base de données est sur le worker kubernetes.

{% hint style="info" %}
Pour récupérer le CIDR des Pods, utilisez la commande suivante sur node ***sudo grep -R 'cluster-cidr=' /var/snap/microk8s/current/args/***.&#x20;

Sauf modification, le CIDR des Pods est *10.1.0.0/16* sur microk8S (default Calico Pods Range) et *10.244.0.0/24* sur K0s
{% endhint %}

* Autoriser le traffic provenant d'un éventuel Replica


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.muppy.io/guides/kubernetes/installer-postgrsql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
