mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
1.7 KiB
1.7 KiB
Kubescape Release
Input
Scan a running Kubernetes cluster
- Scan your Kubernetes cluster. Ignore
kube-systemandkube-publicnamespaces
kubescape scan framework nsa --exclude-namespaces kube-system,kube-public
- Scan your Kubernetes cluster
kubescape scan framework nsa
Scan a local Kubernetes manifest
kubescape scan framework nsa <my-workload.yaml>
kubescape scan framework nsa <my-workload-1.yaml> <my-workload-2.yaml>
kubescape scan framework nsa *.yaml
cat <my-workload.yaml> | kubescape scan framework nsa -
kubescape scan framework nsa https://raw.githubusercontent.com/GoogleCloudPlatform/microservices-demo/master/release/kubernetes-manifests.yaml
Scan HELM chart
- Render the helm chart using
helm templateand pass to stdout
helm template [CHART] [flags] --generate-name --dry-run | kubescape scan framework nsa -
Output formats
By default, the output is user friendly.
For the sake of automation, it is possible to receive the result in a json or junit xml format.
kubescape scan framework nsa --format json --output results.json
kubescape scan framework nsa --format junit --output results.xml