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
The `helm/polaris/ci` contains a number of values files that can be used to install the chart with
115
-
different configurations.
132
+
#### Persistent backend
116
133
117
-
You can also run `ct` (chart-testing):
134
+
> [!WARNING]
135
+
> 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.
136
+
137
+
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
145
+
```
146
+
147
+
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:
148
+
149
+
```bash
150
+
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
151
+
```
152
+
153
+
The `persistence.xml` file references the Postgres hostname as postgres. Update it to localhost to enable local connections:
154
+
155
+
```bash
156
+
sed -i .bak 's/postgres:/localhost:/g' persistence.xml
122
157
```
123
158
124
-
### Uninstalling the chart
159
+
To access Polaris and Postgres locally, set up port forwarding for both services:
160
+
```bash
161
+
kubectl port-forward -n polaris $(kubectl get pod -n polaris -l app.kubernetes.io/name=polaris -o jsonpath='{.items[0].metadata.name}') 8181:8181
162
+
163
+
kubectl port-forward -n polaris $(kubectl get pod -n polaris -l app.kubernetes.io/name=postgres -o jsonpath='{.items[0].metadata.name}') 5432:5432
164
+
```
165
+
166
+
Run the catalog bootstrap using the Polaris admin tool. This step initializes the catalog with the required configuration:
The `helm/polaris/ci` contains a number of values files that can be used to install the chart with
116
-
different configurations.
133
+
#### Persistent backend
117
134
118
-
You can also run `ct` (chart-testing):
135
+
> [!WARNING]
136
+
> 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.
137
+
138
+
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
146
+
```
147
+
148
+
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:
149
+
150
+
```bash
151
+
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
152
+
```
153
+
154
+
The `persistence.xml` file references the Postgres hostname as postgres. Update it to localhost to enable local connections:
155
+
156
+
```bash
157
+
sed -i .bak 's/postgres:/localhost:/g' persistence.xml
123
158
```
124
159
125
-
### Uninstalling the chart
160
+
To access Polaris and Postgres locally, set up port forwarding for both services:
161
+
```bash
162
+
kubectl port-forward -n polaris $(kubectl get pod -n polaris -l app.kubernetes.io/name=polaris -o jsonpath='{.items[0].metadata.name}') 8181:8181
163
+
164
+
kubectl port-forward -n polaris $(kubectl get pod -n polaris -l app.kubernetes.io/name=postgres -o jsonpath='{.items[0].metadata.name}') 5432:5432
165
+
```
166
+
167
+
Run the catalog bootstrap using the Polaris admin tool. This step initializes the catalog with the required configuration:
0 commit comments