Helm 3 chart for Tippecanoe. The chart setups a Kubernetes CronJob
where you can specify how often it should run and what arguments Tippecanoe should be called with. The Helm chart also allows you to run a pre-job using GDAL or your own configuration. This can be enabled using the Chart configurations.
Moved to here
First add the repo
helm repo add dax https://daxgrid.github.io/charts/
helm repo update
Example of usage.
helm upgrade --install my-release-name dax/tippecanoe \
--set schedule="*/5 * * * *" \
--set commandArgs='tippecanoe -zg -o /data/out.mbtiles --drop-densest-as-needed /data/output.geojson --force' \
--set storage.enabled=true \
--set storage.claimName=my-claim-name \
--set storage.path=/data
Example of using with a GDAL pre-job before the Tippecanoe job.
helm upgrade --install my-release-name dax/tippecanoe \
--set schedule="*/5 * * * *" \
--set commandArgs='tippecanoe -zg -o /data/out.mbtiles --drop-densest-as-needed /data/output.geojson --force' \
--set storage.enabled=true \
--set storage.claimName=my-claim-name \
--set storage.path=/data \
--set prejob.enabled=true \
--set prejob.commandArgs='ogr2ogr -f GeoJSON /data/output.geojson PG:"host=localhost dbname=MY_DB user=myuser password=mypassword" -sql "select id, ST_Transform(wkb_geometry\, 4326) as wkb_geometry from my_table"'
Parameters for the helm chart.
Parameter | Description | Default |
---|---|---|
image.repository |
The image repository | openftth/tippecanoe |
image.tag |
The image version tag | v1.36.0 |
schedule |
How often the job should run | 0 0 * * * (once a day at midnight) |
commandArgs |
Tippecanoe command argument | tippecanoe |
restartPolicy |
Restartpolicy | Never |
backOffLimit |
BackoffLimit | 0 |
storage.enabled |
Enable storage | false |
storage.path |
Where the storage is mounted | /data |
storage.claimName |
Storage claimName | `` |
You also have option to enable a prejob. This is a job that runs before the Tippecanoe cronjob. This can for-example be used to generate geojson
to be used by Tippecanoe. The default settings uses GDAL.
Parameter | Description | Default |
---|---|---|
prejob.enabled |
Prejob enabled | false |
prejob.commandArgs |
Prejob commands argument | ogr2ogr |
prejob.image.repository |
Prejob image repository | osgeo/gdal |
prejob.image.tag |
Prejob image tag | alpine-small-3.2.2 |