設定檔適用性:級別 1
SecurityContexts 允許配置 Kubernetes 資源的安全設置。
稽核
執行以下命令並驗證每個 pod 和容器是否已應用 SecurityContext:
kubectl get pods --all-namespaces
補救
請遵循 Kubernetes 文件並將 SecurityContexts 應用於您的 Pods。建議的 SecurityContexts 清單,請參考 Docker
容器的 CIS 安全基準。