We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 381dfa3 + dc326f0 commit 2826614Copy full SHA for 2826614
content/en/docs/reference/access-authn-authz/authorization.md
@@ -134,6 +134,21 @@ The output is similar to this:
134
no
135
```
136
137
+Similarly, to check whether a Service Account named `dev-sa` in Namespace `dev`
138
+can list Pods in the Namespace `target`:
139
+
140
+```bash
141
+kubectl auth can-i list pods \
142
+ --namespace target \
143
+ --as system:serviceaccount:dev:dev-sa
144
+```
145
146
+The output is similar to this:
147
148
149
+yes
150
151
152
`SelfSubjectAccessReview` is part of the `authorization.k8s.io` API group, which
153
exposes the API server authorization to external services. Other resources in
154
this group include:
0 commit comments