Kubernetes ΒΆ
-
Create a disposable local Kubernetes environment:
kind create cluster
-
Install Helm chart:
helm install letsplan ./helm-chart \ --set workloads.app.secrets.app=letsplan-dev
-
Generate
APP_KEY
secret and restart pod:APP_POD=$(kubectl get pod -l component=app -o jsonpath='{.items[0].metadata.name}') APP_KEY=$(kubectl exec -it $APP_POD -- php artisan key:generate --show --no-ansi) kubectl create secret generic letsplan-dev \ --from-literal="APP_KEY=${APP_KEY}" kubectl delete pod $APP_POD
-
Forward port to access app:
APP_POD=$(kubectl get pod -l component=app -o jsonpath='{.items[0].metadata.name}') kubectl port-forward pods/$APP_POD 8080:80
-
Populate database:
Load a database dump, or edit the
letsplan
ConfigMap to connect to the online database instead of populating the local one and then restart the pod. -
Generate tiles:
Open http://localhost:8080/mbtile to generate tiles.