An open API service indexing awesome lists of open source software.

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

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
```