File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change 99
99
```
100
100
kubeadm token create --print-join-command --ttl=0
101
101
```
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
- ```
You can’t perform that action at this time.
0 commit comments