Update environment variable name in kubernetes deployment docs

Signed-off-by: Josh Santos <josh.santos@napster.com>
This commit is contained in:
Josh Santos
2024-12-18 21:24:37 +07:00
parent 4101b18dd6
commit ddf8d7cbcb
+4 -4
View File
@@ -387,8 +387,8 @@ $ yarn build-image --tag backstage:1.0.0
```
There is no special wiring needed to access the PostgreSQL service. Since it's
running on the same cluster, Kubernetes will inject `POSTGRES_SERVICE_HOST` and
`POSTGRES_SERVICE_PORT` environment variables into our Backstage container.
running on the same cluster, Kubernetes will inject `POSTGRES_HOST` and
`POSTGRES_PORT` environment variables into our Backstage container.
These can be used in the Backstage `app-config.yaml` along with the secrets. Apply this to `app-config.production.yaml` as well if you have one:
```yaml
@@ -396,8 +396,8 @@ backend:
database:
client: pg
connection:
host: ${POSTGRES_SERVICE_HOST}
port: ${POSTGRES_SERVICE_PORT}
host: ${POSTGRES_HOST}
port: ${POSTGRES_PORT}
user: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
```