pg_tileserv icon indicating copy to clipboard operation
pg_tileserv copied to clipboard

helm chart?

Open driekus77 opened this issue 11 months ago • 5 comments

I couldnot find a kubernetes helm chart for pg_tileserv so wrote one myself.

Is there already a helm chart that I overlooked? If not are you interested in a PR?

Thanks for pg_tileserv!

driekus77 avatar Mar 11 '24 09:03 driekus77

I don't know what a helm chart is, so...?

pramsey avatar Mar 11 '24 17:03 pramsey

More info at https://helm.sh/

Its easy to install and uninstall multiple kubernetes entities. Sort of a layer over kubernetes its own yaml.

driekus77 avatar Mar 11 '24 17:03 driekus77

Currently I have this setup:

.
├── Chart.yaml
├── install.sh
├── templates
│   ├── _helpers.tpl
│   ├── configmap.yaml
│   ├── ingress.yaml
│   ├── pods.yaml
│   ├── secrets.yaml
│   └── service.yaml
└── values.yaml

The install.sh is optional the rest is mandatory more or less.

pg_tileserv can be deployed using this command:

helm install  --create-namespace --namespace=tileserv  pgtileserv .

And an uninstall is done through this command:

helm uninstall --namespace=tileserv pgtileserv 

The values.yaml file contains all user specific settings like db password etc.

The pod.yaml uses the latest docker image of pg_tileserv.

driekus77 avatar Mar 11 '24 17:03 driekus77

Nicest thing is install can also be done remote. This means the Chart.yaml files need to be served somewhere.

This can be a public location independed of CrunchyData like:

  • https://artifacthub.io/
  • https://github.com/bitnami/charts

Or you create a CrunchyData helm chart git repo that serves multi helm charts for e.g. pg_tileserv or pg_featureserv? Example: https://github.com/kartoza/charts/tree/develop/charts

Or you create a charts folder in your git repo per product.

driekus77 avatar Mar 11 '24 17:03 driekus77

In your postgresoperator repo I found kustomize files: https://www.kubecost.com/kubernetes-devops-tools/kustomize-vs-helm/

So helm can be used as alternative and/or add-on for kustomize...

driekus77 avatar Mar 12 '24 12:03 driekus77