g1y / crime-map

View a map of crime in San Luis Obispo
https://crime-map.g1y.io/
0 stars 1 forks source link

Crime Map

Build Status Maintainability


A distributed system to ingest, parse, track, and display various reports from police departments

Requirements

Deployment

Setup Secrets

Apple Maps

In order to generate an API key, you'll need to be enrolled in Apple's Developer Program ($99/year)

See Creating a Maps Identifier and a Private Key

kubectl -n crime-map create secret generic apple-maps-key \
            --from-file=private-key=/path/to/authkey.p8 \
            --from-literal=issuer-id=<issuer-id> \
            --from-literal=key-id=<key-id>

Google Maps

See Maps Geocoding API Guide - Using API Keys

Option 1: Use kubectl-whisper-secret ( requires kubectl-whisper-secret)

kubectl -n crime-map whisper-secret secret generic google-maps \
            --from-literal=api-key=<api-key>

OR

Option 2: Use vanilla kubectl (less secure, no dependencies)

kubectl -n crime-map create secret generic google-maps \
            --from-literal=api-key=<api-key>

Use kustomize

Dev $kubectl appy -k kubernetes/overlays/dev

Stage $kubectl appy -k kubernetes/overlays/stage

Prod $kubectl appy -k kubernetes/overlays/prod