Skip to content
Helm Charts to install the Plate Recognizer SDK (ALPR) on your Kubernetes cluster.
Smarty
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
platerec-helm
README.md

README.md

Installation

Instructions to install the Plate Recognizer SDK on your Kubernetes cluster.

  1. Get helm from https://github.com/helm/helm/releases
  2. Setup your Kubernetes cluster. For example, https://kubernetes.io/docs/tasks/tools/install-minikube/
    • If using Minikube, make sure to enable the following addons dashboard ingress helm-tiler
  3. Clone this repository git clone https://github.com/parkpow/helm-charts.git and cd helm-charts
  4. Install the chart helm install platerec-sdk platerec-helm/ --set TOKEN=<MY_TOKEN> --set LICENSE_KEY=<LICENSE_KEY>

Configuration

  • To upgrade the chart, do helm upgrade platerec-sdk platerec-helm/ --set TOKEN=<MY_TOKEN> --set LICENSE_KEY=<LICENSE_KEY>
  • To delete the deployment, do helm delete platerec-sdk
  • To use the gpu version instead of the cpu version, do helm install platerec-sdk platerec-helm/ --set TOKEN=<MY_TOKEN> --set LICENSE_KEY=<LICENSE_KEY> --set image.repository=platerecognizer/alpr-gpu
  • To deploy to a different namespace other than default, include --namespace <namespace-name> to the install/upgrade command as so helm install platerec-sdk platerec-helm/ --namespace <namespace-name> --set TOKEN=<MY_TOKEN> --set LICENSE_KEY=<LICENSE_KEY>

Configurations variables that can be changed (by adding them to the install command using --set parameter)

Parameter Description Default Options
TOKEN PlateRecognizer Token (required) nil
LICENSE_KEY PlateRecognizer SDK License (required) nil
replicaCount Number of Pods to run 1
image.repository Plate Recognizer sdk platerecognizer/alpr [platerecognizer/alpr, platerecognizer/alpr-gpu]
image.pullPolicy Image pull policy Always [Always, IfNotPresent]
image.pullSecrets Specify docker-registry secret names as an array [] True
service.annotations Service annotations {}
service.type Kubernetes Service type ClusterIP [LoadBalancer, ClusterIP]
service.port Service HTTP port 8080
persistence.enabled Enable persistence using PVC False
persistence.existingClaim Enable persistence using an existing PVC nil
persistence.storageClass PVC Storage Class nil (uses alpha storage class annotation)
persistence.accessMode PVC Access Mode ReadWriteOnce [ReadWriteMany, ReadWriteOnce ]
persistence.size PVC Storage Request 10Gi

Minikube Notes

To access the instance when using a custom cluster in Minikube, run the following command:

  • Simulate a load balancer minikube tunnel
  • Then run the commands shown after the helm install command.
  • You can also use this command to get the extenal_id kubectl get --namespace default svc -w platerec-sdk-test-platerec-helm
  • Finally call the SDK endpoint with curl -F 'upload=@/path/to/car.jpg' http://<external_ip>:8080/alpr
You can’t perform that action at this time.