Issue
You are trying to determine whether or not the Lacework agent is running in your k8s cluster
Environment
K8s cluster with the Lacework Agent deployed as a daemonset
Keywords
- k8s
- Lacework agent
- Agent
- check
- Health check
Resolution
Run the following command to get a list of pods under the namespace the Lacework Agent daemonset was deployed to, we recommend you deploy it to a distinct ‘Lacework’ namespace
kubectl get all --namespace <nameSpace>
This will return a list of all the pods running under the namespace,
Ensure that all of the pods are ‘Running’
NAME READY STATUS RESTARTS AGE
pod/lacework-agent-1 1/1 Running 0 169m
pod/lacework-agent-2 1/1 Running 0 169m
pod/lacework-agent-3 1/1 Running 0 169m
pod/lacework-agent-4 1/1 Running 0 169m
pod/lacework-agent-5 1/1 Running 0 169m
If any of the pods have anything other than ‘Running’ you can further run
kubectl describe <pod-name>
This will give you an indication of the status of the pod, from there you can get clues about where to look next.