pg_tileserv
pg_tileserv copied to clipboard
helm chart?
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!
I don't know what a helm chart is, so...?
More info at https://helm.sh/
Its easy to install and uninstall multiple kubernetes entities. Sort of a layer over kubernetes its own yaml.
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.
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.
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...