1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-20 04:23:16 +00:00

Add Helm chart for Kubernetes deployment

This commit is contained in:
2025-07-02 16:20:34 +02:00
parent 78fb118c28
commit a1f81ee732
13 changed files with 339 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# xslt-playground Helm Chart
This chart deploys the frontend and backend of xslt-playground.
## Configuration
Key parameters in `values.yaml`:
- `image.frontend` and `image.backend` container images.
- `firebaseSecretName` name of the secret containing Firebase credentials.
- `firebase.credentialsKey` is mounted for the backend and referenced by
`GOOGLE_APPLICATION_CREDENTIALS`.
- `firebase.configKey` is used for the `VITE_FIREBASE_CONFIG` environment
variable of the frontend.
- `databaseUrl` connection string used by the backend.
- `ingress` configure ingress for the frontend service.
- `hpa` enable CPU-based autoscaling for both deployments.
Create the secret before installing the chart:
```bash
kubectl create secret generic firebase-config \
--from-file=service-account.json=</path/to/serviceAccount.json> \
--from-file=firebase-config.json=</path/to/firebaseConfig.json>
```
Install the chart with:
```bash
helm install xslt charts/xslt-playground
```