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
* Fix helm doc
* Remove persistent ref
* Remove persistent ref
* Fixes based on feedback
* Fixes based on feedback
* Fixes based on feedback
* Fixes based on feedback
> The Postgres deployment set up in the fixtures directory is intended for testing purposes only and is not suitable for production use. For production deployments, use a managed Postgres service or a properly configured and secured Postgres instance.
140
123
141
124
Install the chart with a persistent backend. From Polaris repo root:
kubectl wait --namespace polaris --for=condition=ready pod --selector=app.kubernetes.io/name=polaris --timeout=120s
149
130
```
150
131
151
-
After deploying the chart with a persistent backend, the `persistence.xml` file, originally loaded into the Kubernetes pod via a secret, can be accessed locally if needed. This file contains the persistence configuration required for the next steps. Use the following command to retrieve it:
152
-
153
-
```bash
154
-
kubectl exec -it -n polaris $(kubectl get pod -n polaris -l app.kubernetes.io/name=polaris -o jsonpath='{.items[0].metadata.name}') -- cat /deployments/config/persistence.xml > persistence.xml
155
-
```
156
-
157
-
The `persistence.xml` file references the Postgres hostname as postgres. Update it to localhost to enable local connections:
158
-
159
-
```bash
160
-
sed -i .bak 's/postgres:/localhost:/g' persistence.xml
161
-
```
162
-
163
-
To access Polaris and Postgres locally, set up port forwarding for both services:
132
+
To access Polaris and Postgres locally, set up port forwarding for both services (This is needed for bootstrap processes):
164
133
```bash
165
134
kubectl port-forward -n polaris $(kubectl get pod -n polaris -l app.kubernetes.io/name=polaris -o jsonpath='{.items[0].metadata.name}') 8181:8181
166
135
167
136
kubectl port-forward -n polaris $(kubectl get pod -n polaris -l app.kubernetes.io/name=postgres -o jsonpath='{.items[0].metadata.name}') 5432:5432
168
137
```
169
138
170
139
Run the catalog bootstrap using the Polaris admin tool. This step initializes the catalog with the required configuration:
0 commit comments