The Darktrace Kubernetes Operator provides comprehensive security monitoring and threat detection for Kubernetes environments through automated deployment and management of Darktrace sensors.
- API Security Monitoring: Detect malicious Kubernetes API events using DtK8sSensorAuditAgent
- Network Traffic Analysis: Identify suspicious network activity with DtK8sSensorServer
- Container Security: Manage environment taxonomy aligned with Kubernetes API through DtK8sSensorClusterAnalyzer
- Health Monitoring: Track deployment status and sensor health
- Automated Updates: Streamlined management of Darktrace component updates
- Kubernetes cluster with admin privileges
- Valid Darktrace Active AI Security Portal client credentials
- Network connectivity to Darktrace cloud services
The operator requires authenticated access to Darktrace's /CLOUD and /NETWORK endpoints for automated deployment and core functionality.
The installation process creates:
- Dedicated operator namespace
- Operator deployment with appropriate RBAC permissions
- Custom Resource Definitions (CRDs) for
DtK8sSensor,DtK8sSensorServer,DtK8sSensorAuditAgent, andDtK8sSensorClusterAnalyzer
-
Download the latest
dt-k8ssensor-operator.yamlfrom the releases page -
Deploy the operator:
kubectl apply --server-side -f dt-k8ssensor-operator.yaml
helm install dt-k8ssensor-operator oci://public.ecr.aws/darktrace/k8ssensor-operator-chart \
--version <version> \
--namespace darktrace \
--create-namespaceThe chart is also available from Docker Hub (oci://registry-1.docker.io/darktrace/k8ssensor-operator-chart).
Public ECR is recommended as it has higher rate limits.
After the operator is installed, create the auth secret and deploy a DtK8sSensor custom resource to begin monitoring:
kubectl create secret generic dt-k8ssensor-auth \
--namespace darktrace \
--from-literal=clientSecret=<your-client-secret>Then apply a DtK8sSensor custom resource configured with your Darktrace credentials. Refer to the Darktrace Customer Portal for detailed configuration instructions.
Confirm successful installation:
# Verify operator deployment
kubectl get deployment dt-k8ssensor -n <namespace>
# Check CRD installation
kubectl get crd | grep darktrace
# Validate operator logs
kubectl logs -l app=dt-k8ssensor -n <namespace>After successful operator installation, configure and deploy sensors through the Darktrace /CLOUD management console to begin protecting your Kubernetes environment.
For detailed configuration instructions, refer to the Darktrace Customer Portal.
For instructions on upgrading to a newer version of the operator, including version-specific notes on breaking changes, see the Upgrade Guide.
Delete all DtK8sSensor custom resources first to allow finalizer cleanup, then uninstall the chart:
kubectl delete dtk8ssensors --all --timeout=120s --ignore-not-found
helm uninstall dt-k8ssensor-operator -n darktraceCRDs are retained by default after uninstall. To fully remove them:
kubectl delete crd -l app.kubernetes.io/part-of=dt-k8ssensorkubectl delete dtk8ssensor --all --wait=true --ignore-not-found
kubectl delete -f dt-k8ssensor-operator.yaml
kubectl delete crd -l app.kubernetes.io/part-of=dt-k8ssensor