Skip to content

Commit

Permalink
opendatacube#154 Readme notes around update-db deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tisham Dhar committed Jun 22, 2020
1 parent a6cd404 commit fd84731
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 9 additions & 1 deletion stable/datacube-explorer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

This helm chart will deploy a Datacube Explorer deployment, service, and optionally ingress. It will also install postGIS on the target database so it can be used with the Explorer software.

---
**NOTE**

This Helm chart is being heavily modified and CronJobs as part of the helm chart such **update-db** deprecated due to immutability on CronJobs causing
issues with release upgrade.

---

## ODC Database configuration
Connecting to your ODC Database is done using the `database` block. A kubernetes secret containing the `postgres-username` and `postgres-password` for your database is required. Since PostGIS will be installed a secret containing the `postgres-username` and `postgres-password` for a user with administrative privileges is also required. This is an example block for connecting to a psql database named 'odc' on `localhost:5432`:
```YAML
Expand All @@ -23,4 +31,4 @@ additionalSettings: |
```

## Updating CubeDash Datasets
The `update_db.yaml` template is provided to create a cronjob which can update the cubedash database at regular intervals. It should generally call `cubedash-gen --all` which will update the cubedash database for all the datasets in the current datacube database.
The `update_creation_dt.yaml` template is provided to create a cronjob which can update the cubedash database at regular intervals. It should generally call `cubedash-gen --all` which will update the cubedash database for all the datasets in the current datacube database.
6 changes: 0 additions & 6 deletions stable/datacube-explorer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ service:
port: 80
containerPort: 8080 # Internal port on which pod is running and serving cubedash app

updateDbImage:
registry: docker.io
repository: opendatacube/wms
tag: "latest"
pullPolicy: Always

dockerArgs: [ "gunicorn", "-b", "0.0.0.0:8080", "-w", "4", "--timeout", "60", "cubedash:app" ]

updateCreationDt:
Expand Down

0 comments on commit fd84731

Please sign in to comment.