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 chart builds fully qualified service endpoints for bundled databases using the Kubernetes cluster domain. Adjust `clusterDomain` if your cluster doesn't use the default `cluster.local` suffix.
75
+
65
76
## Backend Selection
66
77
67
78
The chart supports both Elasticsearch and OpenSearch backends, but only deploys **one backend at a time** based on the `backend` configuration:
68
79
69
80
### Elasticsearch Backend
81
+
70
82
```yaml
71
83
backend: elasticsearch
72
84
elasticsearch:
@@ -76,6 +88,7 @@ opensearch:
76
88
```
77
89
78
90
### OpenSearch Backend
91
+
79
92
```yaml
80
93
backend: opensearch
81
94
elasticsearch:
@@ -113,6 +126,11 @@ app:
113
126
tag: "latest"
114
127
pullPolicy: IfNotPresent
115
128
129
+
waitForDatabase:
130
+
enabled: true
131
+
intervalSeconds: 2
132
+
maxAttempts: 120
133
+
116
134
env:
117
135
STAC_FASTAPI_TITLE: "STAC API"
118
136
STAC_FASTAPI_DESCRIPTION: "A STAC FastAPI implementation"
@@ -124,8 +142,24 @@ app:
124
142
STAC_FASTAPI_RATE_LIMIT: "200/minute"
125
143
```
126
144
145
+
The optional `waitForDatabase` block adds a lightweight init container that blocks STAC FastAPI startup until the backing Elasticsearch/OpenSearch service is reachable—mirroring the docker-compose `wait-for-it` helper. Disable it by setting `app.waitForDatabase.enabled=false` if you prefer the application to start immediately and rely on internal retries instead.
146
+
127
147
### Database Configuration
128
148
149
+
#### Application Credentials
150
+
151
+
If your Elasticsearch or OpenSearch cluster requires authentication, provide credentials to the application with the `app.databaseAuth` block. You can reference an existing secret or supply literal values:
152
+
153
+
```yaml
154
+
app:
155
+
databaseAuth:
156
+
existingSecret: "stac-opensearch-admin" # Optional. When set, keys are read from this secret.
157
+
usernameKey: "username" # Secret key that stores the username (defaults to "username").
158
+
passwordKey: "password" # Secret key that stores the password (defaults to "password").
159
+
# username: "admin" # Optional literal username when not using a secret.
160
+
# password: "changeme" # Optional literal password when not using a secret.
0 commit comments