A powerful, easily deployable network traffic analysis tool suite for network security monitoring
The Malcolm Helm chart is the supported way to deploy Malcolm on Kubernetes (K8s). It deploys Malcolm’s server components and its live traffic capture components across a cluster, uses Kubernetes features such as StatefulSets, DaemonSets and scheduling on labeled nodes, and can run multiple OpenSearch nodes and Logstash replicas.
Earlier releases of Malcolm also shipped a set of Kubernetes manifests in a kubernetes/ directory, which the control scripts (./scripts/start -f kubeconfig.yaml, etc.) applied to a cluster. That method has been removed. Malcolm’s control scripts and installer now manage Docker and Podman deployments only. See Migrating from Malcolm’s Kubernetes Manifests if you used the older method.
This document assumes good working knowledge of Kubernetes and Helm. The Malcolm-Helm documentation is the authoritative reference for the chart. What follows is an overview.
Review the chart’s production cluster requirements and node label requirements first. In short, the cluster needs a StorageClass that supports ReadWriteMany volumes, primary server nodes labeled cnaps.io/node-type=Tier-1, and capture nodes labeled with one or more of the cnaps.io/*-capture labels for the capture tools they should run.
Add the Helm repository:
$ helm repo add malcolm \
https://raw.githubusercontent.com/idaholab/Malcolm-Helm/refs/heads/helm-repo/
$ helm repo update
$ helm search repo malcolm
NAME CHART VERSION APP VERSION DESCRIPTION
malcolm/malcolm 26.12.0 26.12.0 A Helm chart for Deploying Malcolm in Kubernetes
Save the chart’s default values to a file and edit it as needed:
$ helm show values malcolm/malcolm > values.yaml
$ vi ./values.yaml
Create the namespace and a Secret holding the administrator credentials, then install the chart:
$ export MALCOLM_NAMESPACE=malcolm
$ kubectl create namespace $MALCOLM_NAMESPACE
$ kubectl create secret generic -n $MALCOLM_NAMESPACE malcolm-auth \
--from-literal=username="analyst" \
--from-literal=openssl_password="$(openssl passwd -1 'SuperSecretPassword' | tr -d '\n' | base64 | tr -d '\n')" \
--from-literal=htpass_cred="$(htpasswd -bnB 'analyst' 'SuperSecretPassword' | head -n1)"
$ helm install malcolm malcolm/malcolm \
--namespace $MALCOLM_NAMESPACE \
--values ./values.yaml \
--set is_production=true \
--set auth.existingSecret=malcolm-auth
The Malcolm-Helm repository also contains a Vagrant demonstration that creates a single-node RKE2 cluster in a virtual machine with the chart installed, which is a quick way to try it out.
A Docker-based Malcolm instance is configured with the environment variable files in ./config, written by ./scripts/configure and ./scripts/auth_setup. The Helm chart doesn’t read those files. It is configured with its own values.yaml, whose settings map onto the same environment variables inside Malcolm’s containers. The comments in values.yaml describe each setting, and most of them correspond to a variable described in Environment Variable Files.
A few areas worth reviewing before the first install:
is_production switches between the development and production sections of the values file, which hold resource-related settings like Java heap sizes, worker counts and storage sizes.storage_class_name sets the StorageClass for Malcolm’s PersistentVolumeClaims, and storage.*.classNameOverride can override it for individual claims. See the chart’s storage provisioner options, which include an NFS example.ingress, nginx.type and istio control how Malcolm’s web interface is exposed.auth sets the authentication mode and credentials. Internal service passwords (Valkey, NetBox, Arkime and others) are generated once by the chart’s secret initialization Job.opensearch.singleNode and opensearch.replicas control whether OpenSearch runs as a single node or a cluster. See Using Multiple OpenSearch Nodes.external_elasticsearch points Malcolm at an existing Elasticsearch cluster and Kibana instead of its own OpenSearch.pcap_capture_env, zeek_live, suricata_live, arkime_live and pcap_live configure live traffic capture, which runs as DaemonSets on nodes carrying the corresponding capture labels.When a new Malcolm release changes its environment variables, the corresponding change is made in the chart’s values.yaml and templates. See Updating the Malcolm Helm Chart.
OpenSearch has some important settings that must be present on its underlying Linux system. How these settings are configured depends largely on the underlying host(s) running Kubernetes, how Kubernetes is installed, and the cloud provider on which it is running. Consult the operating system or cloud provider documentation for how to configure these settings.
Settings that likely need to be changed on the nodes running Kubernetes include:
/etc/sysctl.d/)
# the maximum number of memory map areas a process may have
vm.max_map_count=262144
/etc/security/limits.d/limits.conf)
+ soft nofile 65535
+ hard nofile 65535
+ soft memlock unlimited
+ hard memlock unlimited
+ soft nproc 262144
+ hard nproc 524288
+ soft core 0
+ hard core 0
Malcolm’s control scripts (start, stop, status, logs, netbox-backup, etc.) don’t operate on Kubernetes deployments. Use helm and kubectl instead:
| Task | Command |
|---|---|
| Deploy | helm install malcolm malcolm/malcolm -n malcolm --values ./values.yaml |
| Apply configuration changes or a new chart version | helm upgrade malcolm malcolm/malcolm -n malcolm --values ./values.yaml |
| Check status | kubectl get pods -n malcolm -o wide (and kubectl top pods -n malcolm if the metrics server is installed) |
| Follow logs | kubectl logs -n malcolm --follow --all-containers <pod>, or stern for several pods at once (e.g., stern -n malcolm .) |
| Remove Malcolm | helm uninstall malcolm -n malcolm |
| Remove Malcolm’s data | delete the PersistentVolumeClaims left behind in the namespace (kubectl delete pvc --all -n malcolm) or the namespace itself, and confirm the storage provisioner’s reclaim policy removes the underlying volumes |
To back up the NetBox database, run pg_dump in the PostgreSQL pod:
$ kubectl exec -n malcolm postgres-statefulset-0 -- \
pg_dump --username netbox -d netbox | gzip > malcolm_netbox_backup_$(date +%Y%m%d-%H%M%S).gz
To restore it, copy the uncompressed dump into the NetBox pod and run NetBox’s initialization script against it:
$ NETBOX_POD=$(kubectl get pods -n malcolm -l name=netbox-deployment -o jsonpath='{.items[0].metadata.name}')
$ gunzip -c malcolm_netbox_backup_20261124-120000.gz | \
kubectl exec -i -n malcolm "$NETBOX_POD" -- tee /tmp/netbox_restore.txt >/dev/null
$ kubectl exec -n malcolm "$NETBOX_POD" -- \
/opt/netbox/venv/bin/python /usr/local/bin/netbox_init.py --preload-backup /tmp/netbox_restore.txt
$ kubectl exec -n malcolm "$NETBOX_POD" -- rm -f /tmp/netbox_restore.txt
A deployment created with the removed manifests can’t be upgraded in place to the Helm chart: the object names, labels, storage layout and configuration source all differ. Stop the old deployment, carry its settings over into values.yaml, and install the chart. If the old deployment’s data needs to be kept, either point the chart at storage holding a copy of it or reindex from the original PCAP and logs.
This table lists what the old method provided and where to find it with Helm.
| Manifest-based method | Malcolm Helm chart |
|---|---|
./scripts/configure -f kubeconfig.yaml and the .env files in ./config |
values.yaml |
./scripts/auth_setup -f kubeconfig.yaml |
auth (or auth.existingSecret) and keycloak values; internal passwords are generated by the chart’s secret initialization Job |
./scripts/start, stop, restart, wipe, status, logs, netbox-backup and netbox-restore with -f kubeconfig.yaml |
helm and kubectl (see Managing a Deployment) |
--namespace |
helm install --namespace |
kubernetes/01-volumes-nfs.yml.example and 01-volumes-aws-efs.yml.example (static PersistentVolumes) |
a StorageClass that supports ReadWriteMany, set with storage_class_name and storage.*.classNameOverride; the chart creates its own PersistentVolumeClaims |
kubernetes/99-ingress-*.yml.example |
ingress (class, annotations, rules and TLS), nginx.type and istio values |
--image-source and --image-tag |
image.repository, and the image.*_container_override values for individual images |
--no-capture-pods |
live capture pods only run on nodes with the cnaps.io/*-capture labels; pcap_live.enabled and arkime_live.enabled turn those DaemonSets off entirely |
the hedgehog run profile on Kubernetes |
the chart’s remote sensor DaemonSet, which runs on nodes labeled cnaps.io/zeek-remote-capture=true |
| a multi-node or remote OpenSearch cluster | opensearch.singleNode: false and opensearch.replicas for a cluster run by the chart, or external_elasticsearch for an existing Elasticsearch cluster |
--inject-resources and config/kubernetes-container-resources.yml |
no chart setting yet |
--separate-heavy-workloads |
no chart setting yet |
--no-capabilities |
removed |
| custom Suricata rules, YARA rules, Zeek scripts, Zeek intel, Logstash maps, Arkime rules and parsers, and NetBox preload files from Malcolm’s local directories | partial: see the chart’s rule_mount_override and zeek_chart_overrides/suricata_chart_overrides values |