Skip to content

Commit 9c3284d

Browse files
author
lerndevops
authored
Update README.md
1 parent f0a8571 commit 9c3284d

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

kube/install/README.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -99,34 +99,3 @@
9999
```
100100
kubeadm token create --print-join-command --ttl=0
101101
```
102-
103-
## FYI Only: Reconstructing the Join Command for Kubeadm
104-
105-
```
106-
skeleton of a kubeadm join command for a control plane node:
107-
108-
kubeadm join <endpoint-ip-or-dns>:<port> \
109-
--token <valid-bootstrap-token> \
110-
--discovery-token-ca-cert-hash <ca-cert-sha256-hash> \
111-
--control-plane \
112-
--certificate-key <certificate-key>
113-
```
114-
115-
```
116-
skeleton of a kubeadm join command for a worker node:
117-
118-
kubeadm join <endpoint-ip-or-dns>:<port> \
119-
--token <valid-bootstrap-token> \
120-
--discovery-token-ca-cert-hash <ca-cert-sha256-hash> \
121-
```
122-
123-
```
124-
get the controleplane IP:PORT: kubectl cluster-info
125-
126-
list exsiting tokens: kubeadm token list
127-
128-
Create kubeadm bootstrap token: kubeadm token create
129-
130-
find ca-cert-hash with openssl:
131-
openssl x509 -in /etc/kubernetes/pki/ca.crt -pubkey -noout | openssl pkey -pubin -outform DER | openssl dgst -sha256
132-
```

0 commit comments

Comments
 (0)