This repository manages deployment of titiler to AKS.
Run the deploy.sh
script to setup Traefik load balancer with 3 titiler pods.
Run delete.sh
to cleanup the Kubernetes environment.
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.
pipenv install
pipenv shell
(titiler-aks) cd titiler/app
(titiler-aks) pipenv run dev
or
cd titiler/dockerfiles
docker-compose up