Skip to content

Helm Charts For Installing Aqua Security Components

License

Notifications You must be signed in to change notification settings

ppandrangi/aqua-helm

 
 

Repository files navigation

Aqua Security Helm Charts

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

Contents

Helm charts

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)

Quisk Start

Use aqua-quickstart chart to quickly install Aqua CSP for testing/POC purpose. This chart doesn't support production grade deployments.

  1. Clone the GitHub repository
$ git clone https://github.com/aquasecurity/aqua-helm.git
$ cd aqua-helm/
  1. Create aqua namespace.
$ kubectl create namespace aqua
  1. Deploy aqua-quickstart chart
$ helm upgrade --install --namespace aqua aqua ./aqua-quickstart --set imageCredentials.username=<>,imageCredentials.password=<>

Deployment instructions

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)

Add Aqua Helm Repository (Optional)

  • 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

Deploy the Helm charts

  1. Create aqua namespace.
$ kubectl create namespace aqua
  1. Install Server chart

  2. Install Enforcer chart

  3. Install KubeEnforcer chart

  4. Install Scanner chart (Optional)

  5. Install Gateway chart (Multi Cluster use-case)

Troubleshooting

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

Issues and feedback

If you encounter any problems or would like to give us feedback on deployments, we encourage you to raise issues here on GitHub.

About

Helm Charts For Installing Aqua Security Components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 94.5%
  • Shell 5.5%