Skip to content

Commit

Permalink
Merge pull request #27141 from neolit123/1.21-add-note-about-admin.conf
Browse files Browse the repository at this point in the history
kubeadm/create-cluster: add warning about admin.conf
  • Loading branch information
k8s-ci-robot authored Mar 30, 2021
2 parents e7a3482 + 669322a commit b0f7615
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,13 @@ Alternatively, if you are the `root` user, you can run:
export KUBECONFIG=/etc/kubernetes/admin.conf
```

{{< warning >}}
Kubeadm signs the certificate in the `admin.conf` to have `Subject: O = system:masters, CN = kubernetes-admin`.
`system:masters` is a break-glass, super user group that bypasses the authorization layer (e.g. RBAC).
Do not share the `admin.conf` file with anyone and instead grant users custom permissions by generating
them a kubeconfig file using the `kubeadm kubeconfig user` command.
{{< /warning >}}

Make a record of the `kubeadm join` command that `kubeadm init` outputs. You
need this command to [join nodes to your cluster](#join-nodes).

Expand Down

0 comments on commit b0f7615

Please sign in to comment.