Skip to content

Commit 5a9879a

Browse files
author
Tim Bannister
committed
Emphasize that some commands run on control plane
Our readers are often smart, but they are also in a hurry. Make it extra clear that you need to run some commands in a different shell.
1 parent 4fc01b4 commit 5a9879a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

content/en/docs/tasks/administer-cluster/kubeadm/adding-linux-nodes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ To specify an IPv6 tuple for `<control-plane-host>:<control-plane-port>`, IPv6 a
3939
If you do not have the token, you can get it by running the following command on the control plane node:
4040

4141
```bash
42+
# Run this on a control plane node
4243
sudo kubeadm token list
4344
```
4445

@@ -57,6 +58,7 @@ current token has expired, you can create a new token by running the following c
5758
control plane node:
5859

5960
```bash
61+
# Run this on a control plane node
6062
sudo kubeadm token create
6163
```
6264

@@ -70,6 +72,7 @@ If you don't have the value of `--discovery-token-ca-cert-hash`, you can get it
7072
following commands on the control plane node:
7173

7274
```bash
75+
# Run this on a control plane node
7376
sudo cat /etc/kubernetes/pki/ca.crt | openssl x509 -pubkey | openssl rsa -pubin -outform der 2>/dev/null | \
7477
openssl dgst -sha256 -hex | sed 's/^.* //'
7578
```

content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ To specify an IPv6 tuple for `<control-plane-host>:<control-plane-port>`, IPv6 a
8383
If you do not have the token, you can get it by running the following command on the control plane node:
8484

8585
```bash
86-
kubeadm token list
86+
# Run this on a control plane node
87+
sudo kubeadm token list
8788
```
8889

8990
The output is similar to this:
@@ -101,7 +102,8 @@ current token has expired, you can create a new token by running the following c
101102
control plane node:
102103

103104
```bash
104-
kubeadm token create
105+
# Run this on a control plane node
106+
sudo kubeadm token create
105107
```
106108

107109
The output is similar to this:

0 commit comments

Comments
 (0)