Follow these instructions to deploy AccuKnox KIEM as a Kubernetes job.
- A running Kubernetes cluster
- Helm (v3.13.1 or later)
Variable | Sample Value | Description |
---|---|---|
accuknox.url | cspm.demo.accuknox.com | AccuKnox CSPM Endpoint URL |
accuknox.tenantId | 2 | AccuKnox Tenant ID |
accuknox.label | KIEM | AccuKnox Label |
accuknox.authToken | $token | AccuKnox Token |
accuknox.clusterName | $clusterName | Cluster Name |
accuknox.cronTab | 30 9 * * * | CronJob (UTC) |
git clone https://github.com/accuknox/accuknox-jobs
cd accuknox-jobs/kiem-job
helm upgrade --install accuknox-kiem . \
--set accuknox.url="cspm.demo.accuknox.com" \
--set accuknox.tenantId="$tenantId" \
--set accuknox.label="$label" \
--set accuknox.authToken="$token" \
--set accuknox.clusterName="$clusterName" \
--set accuknox.cronTab="30 9 * * *"
- You can obtain the AccuKnox Token and Tenant ID from the AccuKnox
SaaS platform under
Settings > Tokens
. - The AccuKnox Label can be found on the AccuKnox SaaS platform under
Settings > Labels
.
Follow these instructions to run AccuKnox KIEM manually, outside of Kubernetes.
kubeconfig
file located at$HOME/.kube
- A running Kubernetes cluster
- Docker
- curl
mkdir -p data
docker run \
--network host \
-v ./data:/data \
-v "$HOME/.kube:/root/.kube" \
accuknox/kiem:latest \
./kiem run --output /data/report.json
export URL="<AccuKnox CSPM URL>" # e.g., cspm.demo.accuknox.com
export TENANT_ID="<tenant ID>"
export LABEL_NAME="<label>"
export AUTH_TOKEN="<auth token>"
curl -L -X POST \
-H "Tenant-Id: ${TENANT_ID}" \
-H "Authorization: Bearer ${AUTH_TOKEN}" \
-F file=@data/report.json \
"https://${URL}/api/v1/artifact/?tenant_id=${TENANT_ID}&data_type=KIEM&save_to_s3=false&label_id=${LABEL_NAME}"