This topic contains Helm charts and instructions for the deployment and maintenance of Aqua Cloud Native Security (CSP).
CSP deployments include the following components:
- Server (Console, Database, and Gateway)
- Enforcer
- KubeEnforcer
- Scanner
This repository includes following charts that may be deployed separately:
- Server - deploys the Console, Database, Gateway components; and (optionally) the Scanner, Envoy component
- Enforcer - deploys the Enforcer daemonset
- Scanner - deploys the Scanner deployment
- KubeEnforcer - deploys the KubeEnforcer deployment
- QuickStart - deploys Console, Database, Gateway and KubeEnforcer components (Not for Production use)
Use aqua-quickstart chart to quickly install Aqua CSP for testing/POC purpose. This chart doesn't support production grade deployments.
- Clone the GitHub repository
$ git clone https://github.com/aquasecurity/aqua-helm.git
$ cd aqua-helm/
- Create
aqua
namespace.
$ kubectl create namespace aqua
- Deploy aqua-quickstart chart
$ helm upgrade --install --namespace aqua aqua ./aqua-quickstart --set imageCredentials.username=<>,imageCredentials.password=<>
Follow the steps in this section for production grade deployments. You can either clone aqua-helm git repo or you can add our helm private repository (https://helm.aquasec.com)
- Please add the Aqua Helm repository to your local Helm repos by executing the following command:
$ helm repo add aqua-helm https://helm.aquasec.com
- Search for all components of the latest version in our Aqua Helm repository for helm 2.x
$ helm search aqua-helm
# Examples
$ helm search aqua-helm --versions
$ helm search aqua-helm --version 5.3.0
for helm 3.x
$ helm search repo aqua-helm
# Examples
$ helm search repo aqua-helm --versions
$ helm search repo aqua-helm --version 5.3.0
Example output:
NAME CHART VERSION APP VERSION DESCRIPTION
aqua-helm/enforcer 5.3.0 5.3 A Helm chart for the Aqua Enforcer
aqua-helm/scanner 5.3.0 5.3 A Helm chart for the Aqua Scanner CLI component
aqua-helm/server 5.3.0 5.3 A Helm chart for the Aqua Console components
aqua-helm/kube-enforcer 5.3.0 5.3 A Helm chart for the Aqua KubeEnforcer
- Create
aqua
namespace.
$ kubectl create namespace aqua
-
Install Server chart
-
Install Enforcer chart
-
Install KubeEnforcer chart
-
Install Scanner chart (Optional)
-
Install Gateway chart (Multi Cluster use-case)
This section not all-inclusive. It describes common issues that Aqua Security has encountered during deployments.
(1) Error: UPGRADE/INSTALL FAILED, configmaps is forbidden.
Error: UPGRADE FAILED: configmaps is forbidden: User "system:serviceaccount:kube-system:default" cannot list configmaps in the namespace "kube-system"
Solution: Create a service account for Tiller to utilize.
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
helm init --service-account tiller --upgrade
(2) Error: No persistent volumes available for this claim and no storage class is set.
Solution: Most managed Kubernetes deployments do NOT include all possible storage provider variations at setup time. Refer to the official Kubernetes guidance on storage classes for your platform. Three examples are shown below.
for more information go to storage docs, Link
(3) Error: When executing kubectl get events -n aqua
you might encounter one of the following errors:
no persistent volumes available for this claim and no storage class is set or PersistentVolumeClaim is not bound.
Solution: If you encounter this error, you need to create a persistent volume prior to chart installation with a generic or existing storage class, specifying db.persistence.storageClass
in the values.yaml file. A sample file using aqua-storage
is included in the repo.
$ kubectl apply -f pv-example.yaml
If you encounter any problems or would like to give us feedback on deployments, we encourage you to raise issues here on GitHub.