You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Navigate to the Keycloak Admin Console (`http://localhost:8080/auth/admin` or your ingress URL)
39
+
2. Login with admin credentials
40
+
3. Go to **Realm Settings → Action → Partial Export**
41
+
4. Select all options and export to JSON
42
+
5. Save the JSON file (e.g., `realm-export.json`)
43
+
44
+
#### 1b. Backup Database Using pgAdmin
45
+
46
+
> 💡 **Tip**: If your Helm chart already deploys pgAdmin as a subchart (e.g., `pgadmin4.enabled: true`), you can use that instance directly — it already has network access to the PostgreSQL service within the cluster.
47
+
>
48
+
> Example subchart configuration:
49
+
> ```yaml
50
+
> pgadmin4:
51
+
> enabled: true
52
+
> env:
53
+
> email: admin@example.com
54
+
> password: admin-password
55
+
> ingress:
56
+
> enabled: true
57
+
> hosts:
58
+
> - host: pgadmin.example.com
59
+
> paths:
60
+
> - path: /
61
+
> pathType: Prefix
62
+
> ```
63
+
64
+
**Option A — pgAdmin runs inside the same cluster (recommended):**
65
+
66
+
Since pgAdmin can resolve Kubernetes service names directly, no port-forward is needed:
67
+
68
+
| Field | Value |
69
+
|-------|-------|
70
+
| **Host name/address** | `<release-name>-postgresql` (Kubernetes service name) |
71
+
| **Port** | `5432` |
72
+
| **Maintenance database** | your Keycloak database name |
73
+
| **Username** | your Keycloak database user |
74
+
| **Password** | *(retrieve from your Kubernetes secret, see below)* |
75
+
76
+
**Option B — pgAdmin runs outside the cluster:**
77
+
78
+
Create a port-forward first, then connect to `localhost`:
0 commit comments