https://github.com/undp-data/titiler-aks
This repository manages deployment of titiler to AKS
https://github.com/undp-data/titiler-aks
Last synced: about 1 year ago
JSON representation
This repository manages deployment of titiler to AKS
- Host: GitHub
- URL: https://github.com/undp-data/titiler-aks
- Owner: UNDP-Data
- Created: 2022-05-31T16:40:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T19:41:58.000Z (over 2 years ago)
- Last Synced: 2025-03-05T16:40:29.290Z (over 1 year ago)
- Language: Python
- Size: 63.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# titiler-aks
This repository manages deployment of [titiler](https://developmentseed.org/titiler) to AKS.
## Setup
Run the `deploy.sh` script to setup Traefik load balancer with 3 titiler pods.
Run `delete.sh` to cleanup the Kubernetes environment.
## Update titiler Docker image to AKS
Docker image will be deployed to Github Package by [docker-image.yaml](.github/workflows/docker-image.yaml) when tag version `vX.X.X` is created.
Update tag version of `titiler-aks` in `manifest.yml`, then execute the following commands to apply.
```zsh
kubectl config use-context GeoKube01
kubectl config set-context $(kubectl config current-context) --namespace=titiler-dev
kubectl apply -f manifest.yml --namespace titiler-dev
```
When you applied `manifest.yml`, replacement of pods might fail because of insufficient error. In such case, you may need to adjust number of replicas or memory size for each pods. Or you may need to increase maximum node pools of the cluster.
## References
- https://medium.com/geekculture/traefik-ingress-on-azure-kubernetes-service-fa498ba7e4b4
## Develop
```commandline
pipenv install
pipenv shell
(titiler-aks) cd titiler/app
(titiler-aks) pipenv run dev
```
or
```commandline
cd titiler/dockerfiles
docker-compose up
```