datacube

by Open Data Cube

Helm chartv0.18.2Verified publisher

Datacube Web Map Service

About this chart

Datacube WMS

Datacube Web Map Service

Example Config

This example works on docker for mac, with a pre-indexed postgres database hosted on the host machine

image:
  registry: docker.io
  repository: opendatacube/wms
  tag: "0.7.16"
  pullPolicy: Always
domain: localhost
database:
  host: host.docker.internal
  port: 5432
  existingSecret: ows
  database: ows
clusterInfo:
  envName: dev

environment:
  # Database Settings for datacube
  DB_HOSTNAME: export 
  DB_DATABASE: ows
  DB_PASSWORD: password
  DB_PORT: 5432
  DB_USERNAME: ows

service:
  type: LoadBalancer

minReplicas: 1
maxReplicas: 2

wms:
  config:
    url: https://raw.githubusercontent.com/GeoscienceAustralia/dea-config/master/dev/services/wms/ows/wms_cfg.py
  dockerArgs:
    - "gunicorn"
    - "-b"
    - "0.0.0.0:8000"
    - "-w"
    - "2"
    - "-k"
    - "eventlet"
    - "--timeout"
    - "30"
    - "--pid"
    - "gunicorn.pid"
    - "datacube_wms.wsgi"
  enabled: true
  externalPort: 3000
  internalPort: 8000
  resources:
    requests:
      cpu: "100m"
      memory: 1536Mi
    limits:
      memory: 2560Mi
  additionalEnvironmentVars:
    AWS_ACCESS_KEY_ID:  
    AWS_SECRET_ACCESS_KEY: 
    AWS_DEFAULT_REGION: ap-southeast-2

Adjust these variables for your environment

$ helm install ./datacube-wms --values config.yaml

Introduction

This chart bootstraps a Datacube WMS deployment on a Kubernetes cluster using the Helm package manager.

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release -f config.yaml stable/datacube-wms 

The command deploys WMS on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Database setup

This chart requires an exising ODC atabase.

Connecting to an existing ODC Database is done using the database block. A kubernetes secret containing the postgres-username and postgres-password for your database is required. This is an example block for connecting to a psql database named 'odc' on localhost:5432:

database:
  database: odc
  host: localhost
  port: 5432
  existingSecret: odc-secret

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Deploy datacube with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has datacube on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdatacube is pinned at v0.18.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply