Skip to content

Commit 9b4b883

Browse files
authored
Merge pull request #38010 from Shubham82/Add_shell
Append triple backticks with shell for code snippet
2 parents 60a91c9 + e100cf8 commit 9b4b883

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ The certificate value is in Base64-encoded format under `status.certificate`.
268268

269269
Export the issued certificate from the CertificateSigningRequest.
270270

271-
```
271+
```shell
272272
kubectl get csr myuser -o jsonpath='{.status.certificate}'| base64 -d > myuser.crt
273273
```
274274

@@ -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)