Deploy presidio to Kubernetes
You can install Presidio locally using KIND, as a service in Kubernetes or AKS.
- Deploy locally using KIND
- Deploy with Kubernetes
- Prerequisites
- Step by Step Deployment with customizable parameters
Deploy locally with KIND
-
Install Docker.
-
Clone Presidio.
-
Run the following script, which will use KIND (Kubernetes emulation in Docker)
cd docs/samples/deployments/k8s/deployment/
./run-with-kind.sh
- Wait and verify all pods are running:
kubectl get pod -n presidio
- Port forwarding of HTTP requests to the API micro-service will be done automatically. In order to run manual:
kubectl port-forward <presidio-analyzer-pod-name> 8080:8080 -n presidio
Presidio As a Service with Kubernetes
Prerequisites
!!! note: Note Note the pod's resources requirements (CPU and memory) and plan the cluster accordingly.
-
kubectl installed. Verify you can communicate with the cluster by running:
kubectl version
-
Local helm client.
- Optional - Container Registry - such as ACR. Only needed if you are using your own presidio images and not the default ones from from Microsoft syndicates container catalog
- Recent presidio repo is cloned on your local machine.
Step by step deployment with customizable parameters
Note: Presidio is not deployed with an ingress controller by default.
to change this behavior, deploy the helm chart withingress.enabled=true
and specify they type of ingress controller to be used withingress.class=nginx
(supported classes are:nginx
).
- Deploy from
/docs/samples/deployments/k8s/charts/presidio
# Based on the DOCKER_REGISTRY and PRESIDIO_LABEL from the previous steps
helm install --name demo --set registry=${DOCKER_REGISTRY},tag=${PRESIDIO_LABEL} . --namespace presidio