You can install Akto via Helm charts.
Akto's Helm chart repo is on GitHub here. You can also find Akto on Helm.sh here.
Please ensure you have the following -
- A Kubernetes cluster where you have deploy permissions
helm
command installed. Check here
Here are the steps to install Akto via Helm charts -
- Prepare Mongo Connection string
- Install Akto via Helm
- Verify Installation and harden security
Akto Helm setup needs a Mongo connection string as input. It can come from either of the following -
-
Your own Mongo Ensure your machine where you setup Mongo is NOT exposed to public internet. It shouldn't have a public IP. You can setup Mongo by running the following commands.
sudo yum update -y sudo yum install -y docker sudo dockerd& docker run --name mongo --restart always -v ./data:/data/db -p 27017:27017 mongo sudo systemctl enable /usr/lib/systemd/system/docker.service
The connection string would then be
mongodb://<YOUR_INSTANCE_PRIVATE_IP>:27017/admini
-
Mongo Atlas You can use Mongo Atlas connection as well
-
AWS Document DB If you are on AWS, you can use AWS Document DB too. You can find the connection string on the Cluster page itself.
Note: Please ensure your K8S cluster has connectivity to Mongo.
- Add Akto repo
helm repo add akto https://akto-api-security.github.io/helm-charts
- Install Akto via helm
helm install akto akto/akto -n dev --set mongo.aktoMongoConn="<AKTO_CONNECTION_STRING>"
- Run
kubectl get pods -n <NAMESPACE>
and verify you can see 4 pods
- Run the following to get Akto dashboard url
kubectl get services/akto-dashboard -n dev | awk -F " " '{print $4;}'
- Open Akto dashboard on port 8080. eg
http://a54b36c1f4asdaasdfbd06a259de2-acf687643f6fe4eb.elb.ap-south-1.amazonaws.com:8080/
- For good security measures, you should enable HTTPS by adding a certificate and put it behind a VPN. If you are on AWS, follow the guide here.