1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-28 19:08:15 +00:00

Update README about installation flag

This commit is contained in:
Liz Rice 2017-07-20 17:33:21 +01:00 committed by GitHub
parent a6a784f55f
commit 34dd31970a

View File

@ -30,18 +30,25 @@ If Go is installed on the target machines, you can simply clone this repository
``` ```
Available Commands: Available Commands:
master Checks for Kubernetes master node federated Run benchmark checks for a Kubernetes federated deployment.
node Checks for Kubernetes node help Help about any command
federated Checks for Kubernetes federated deployment master Run benchmark checks for a Kubernetes master node.
help Help information node Run benchmark checks for a Kubernetes node.
Flags: Flags:
-c, --check string A comma-delimited list of checks to run as specified in CIS document. Example --check="1.1.1,1.1.2" -c, --check string A comma-delimited list of checks to run as specified in CIS document. Example --check="1.1.1,1.1.2"
-g, --group string Run all the checks under this comma-delimited list of groups. Example --group="1.1" --config string config file (default is ./cfg/config.yaml)
-h, --help help for kube-bench -g, --group string Run all the checks under this comma-delimited list of groups. Example --group="1.1"
--json Output results as JSON --installation string Specify how kubernetes cluster was installed. Possible values are default,hyperkube,kops,kubeadm (default "default")
--json Prints the results as JSON
-v, --verbose verbose output (default false)
``` ```
## Configuration
Kubernetes config and binary file locations and names can vary from installation to installation, so these are configurable in the `cfg/config.yaml` file.
They also tend to vary according to which tool was used to install Kubernetes. You can use the `--installation` flag to pick up a different default set of file names and locations. Again these defaults are configurable through `cfg/config.yaml` (and pull requests to correct or add default file locations are especially welcome).
## Test config YAML representation ## Test config YAML representation
The tests are represented as YAML documents (installed by default into ./cfg). The tests are represented as YAML documents (installed by default into ./cfg).