kube-bench

kube-bench 官方文档:

https://github.com/aquasecurity/kube-bencharrow-up-right

安装

下载 kube-bench.yaml

# 浏览器访问
https://github.com/aquasecurity/kube-bench/blob/main/job.yaml

# 复制 yaml 内容,并创建 kube-bench.yaml

运行 kube-bench

kubectl create -f kube-bench.yaml

查看检测内容

# 查看 kube-bench Pod
kubectl get pod 
NAME               READY   STATUS      RESTARTS   AGE
kube-bench-fqq2f   0/1     Completed   0          5m24s

# 根据上方查询到的 Pod 结果,查看 kube-bench Pod 日志
kubectl logs kube-bench-fqq2f

日志内容即检测结果

Last updated