Skip to content

Commit e100cf8

Browse files
committed
Added shell for code snippet.
1 parent 707d369 commit e100cf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/en/docs/reference/access-authn-authz/certificate-signing-requests.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,20 +295,20 @@ The last step is to add this user into the kubeconfig file.
295295

296296
First, you need to add new credentials:
297297

298-
```
298+
```shell
299299
kubectl config set-credentials myuser --client-key=myuser.key --client-certificate=myuser.crt --embed-certs=true
300300

301301
```
302302

303303
Then, you need to add the context:
304304

305-
```
305+
```shell
306306
kubectl config set-context myuser --cluster=kubernetes --user=myuser
307307
```
308308

309309
To test it, change the context to `myuser`:
310310

311-
```
311+
```shell
312312
kubectl config use-context myuser
313313
```
314314

0 commit comments

Comments
 (0)