Skip to content

Commit cf06d62

Browse files
authored
Update README.MD
Add `installation` section
1 parent 759eb6a commit cf06d62

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.MD

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ kube-psp-advisor is a tool that makes it easier to create K8s Pod Security Polic
44

55
It has 2 subcommands, `kube-psp-advisor inspect` and `kube-psp-advisor convert`. `inspect` connects to a K8s API server, downloads all Pod-related objects in a given namespace, and generates a PSP based on the properties of those objects. `convert` works without connecting to an API Server, reading a single .yaml file containing a object with a pod spec and generating a PSP based on the file.
66

7+
## Installation as a Krew Plugin
8+
9+
Follow the [install instruction](https://github.com/kubernetes-sigs/krew#installation) to install `krew`. Then run the following command:
10+
11+
```
12+
kubectl krew install who-can
13+
```
14+
15+
The plugin will be available as `kubectl advise-psp`.
16+
717
## Build and Run locally
818
1. ```make build```
919
2. ```./kube-psp-advisor inspect``` to generate Pod Security Policy based on running cluster configuration

0 commit comments

Comments
 (0)