Skip to content

This repository manages deployment of titiler to AKS

Notifications You must be signed in to change notification settings

UNDP-Data/titiler-aks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

titiler-aks

This repository manages deployment of 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 when tag version vX.X.X is created.

Update tag version of titiler-aks in manifest.yml, then execute the following commands to apply.

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

Develop

pipenv install
pipenv shell
(titiler-aks) cd titiler/app
(titiler-aks) pipenv run dev

or

cd titiler/dockerfiles
docker-compose up