kubeadm join

Jmnote (토론 | 기여)님의 2019년 5월 28일 (화) 10:11 판 (새 문서: {{소문자}} ==개요== ;kubeadm join {{소스헤더|master}} <source lang='console'> root@master1:~# kubeadm token list TOKEN TTL EXPIRES...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

kubeadm join
master
root@master1:~# kubeadm token list
TOKEN                     TTL       EXPIRES                     USAGES                   DESCRIPTION                                                EXTRA GROUPS
i50r58.e8dx9hd9m6tmv6603  23h       2019-05-28T16:17:39+09:00   authentication,signing   The default bootstrap token generated by 'kubeadm init'.   system:bootstrappers:kubeadm:default-node-token
root@master1:~# openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex
(stdin)= e8ee89003791b7340e6361b8f20663571d1156d393057fc8a816857b0f965984
worker
root@worker2:~# kubeadm join --token i50r58.e8dx9hd9m6tmv6603 172.20.0.150:6443 --discovery-token-ca-cert-hash sha256:e8ee89003791b7340e6361b8f20663571d1156d393057fc8a816857b0f965984
[preflight] Running pre-flight checks
[preflight] Reading configuration from the cluster...
[preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -oyaml'
...

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}