You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/for-devs/console/security-policies.md
+29-5Lines changed: 29 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -36,8 +36,32 @@ When Security Policies are enabled for the Team, then know that:
36
36
37
37
## See policy reports
38
38
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>
0 commit comments