Skip to content

Commit

Permalink
Merge pull request #5832 from zwtop/patch-1
Browse files Browse the repository at this point in the history
📖 fix docs about generate kubeconfig use CA
  • Loading branch information
k8s-ci-robot authored Dec 16, 2021
2 parents 88b778d + 5466e48 commit 1295333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/book/src/tasks/certs/generate-kubeconfig.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## Generating a Kubeconfig with your own CA

1. Create a new Certificate Signing Request (CSR) for the `system:masters` Kubernetes role, or specify any other role under CN.
1. Create a new Certificate Signing Request (CSR) for the `admin` user with the `system:masters` Kubernetes role, or specify any other role under O.

```bash
openssl req -subj "/CN=system:masters" -new -newkey rsa:2048 -nodes -out admin.csr -keyout admin.key -out admin.csr
openssl req -subj "/CN=admin/O=system:masters" -new -newkey rsa:2048 -nodes -keyout admin.key -out admin.csr
```

2. Sign the CSR using the *[cluster-name]-ca* key:
Expand Down

0 comments on commit 1295333

Please sign in to comment.