Skip to content

Commit dff3192

Browse files
authored
feat: updated kyverno policy viewing instructions (#116)
1 parent 421e90e commit dff3192

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

docs/for-devs/console/security-policies.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,32 @@ When Security Policies are enabled for the Team, then know that:
3636

3737
## See policy reports
3838

39-
1. Go to `Workloads`.
40-
41-
2. Click on the ArgoCD `application` for the Workload you want to see the policy report.
42-
43-
3. In the `Application Details Tree` you will see a `policyreport` attached to the `ReplicaSet` and an `admissionreport` attached to each `Pod`.
39+
### Option 1: Using kubectl inside the Cloud Shell
40+
Requirement: The cloud shell for your team should be enabled in the team settings. This can be done by the platform admin or a team admin.
41+
42+
1. When logged in a team user, click the shell icon on the left menu bar
43+
2. In the shell use kubectl to get the list of `policyreports`
44+
```bash
45+
kubectl get policyreports -n team-<team name>
46+
```
47+
3. View a specific report
48+
```
49+
kubectl get policyreports -n team-<team name> <report id>
50+
```
51+
52+
### Option 2: Using kubectl locally
53+
Requirement: The kubernetes API server endpoint must be configured (under Settings -> Cluster) in order for you to be able to download the kubeconfig file. This can be done by the platform admin.
54+
55+
1. When logged in a team user, click on **Download KUBECFG** in the left menu bar
56+
2. set your local KUBECONFIG variable
57+
```bash
58+
export KUBECONFIG=<path to the downloaded file in step 1>
59+
```
60+
3. In the shell use kubectl to get the list of `policyreports`
61+
```bash
62+
kubectl get policyreports -n team-<team name>
63+
```
64+
4. View a specific report
65+
```
66+
kubectl get policyreports -n team-<team name> <report id>
67+
```

0 commit comments

Comments
 (0)