Skip to content

Commit

Permalink
add doc for --as-group in cli
Browse files Browse the repository at this point in the history
Add doc for this pr:
kubernetes/kubernetes#43696
  • Loading branch information
CaoShuFeng authored and Jessica Yao committed Sep 22, 2017
1 parent e9d9fee commit 37613f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/admin/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -614,13 +614,13 @@ Impersonate-Extra-scopes: development
```

When using `kubectl` set the `--as` flag to configure the `Impersonate-User`
header.
header, set the `--as-group` flag to configure the `Impersonate-Group` header.

```shell
$ kubectl drain mynode
Error from server (Forbidden): User "clark" cannot get nodes at the cluster scope. (get nodes mynode)

$ kubectl drain mynode --as=superman
$ kubectl drain mynode --as=superman --as-group=system:masters
node "mynode" cordoned
node "mynode" drained
```
Expand Down

0 comments on commit 37613f2

Please sign in to comment.