"Kubeadm join"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
 
5번째 줄: 5번째 줄:
==예시 1==
==예시 1==
{{소스헤더|master}}
{{소스헤더|master}}
<source lang='console'>
<syntaxhighlight lang='console'>
root@master1:~# kubeadm token list
root@master1:~# kubeadm token list
TOKEN                    TTL      EXPIRES                    USAGES                  DESCRIPTION                                                EXTRA GROUPS
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
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
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
root@master1:~# openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex
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
(stdin)= e8ee89003791b7340e6361b8f20663571d1156d393057fc8a816857b0f965984
</source>
</syntaxhighlight>
{{소스헤더|worker}}
{{소스헤더|worker}}
<source lang='console'>
<syntaxhighlight lang='console'>
root@worker02:~# kubeadm join --token i50r58.e8dx9hd9m6tmv6603 172.20.0.150:6443 --discovery-token-ca-cert-hash sha256:e8ee89003791b7340e6361b8f20663571d1156d393057fc8a816857b0f965984
root@worker02:~# kubeadm join --token i50r58.e8dx9hd9m6tmv6603 172.20.0.150:6443 --discovery-token-ca-cert-hash sha256:e8ee89003791b7340e6361b8f20663571d1156d393057fc8a816857b0f965984
[preflight] Running pre-flight checks
[preflight] Running pre-flight checks
27번째 줄: 27번째 줄:


Run 'kubectl get nodes' on the control-plane to see this node join the cluster.
Run 'kubectl get nodes' on the control-plane to see this node join the cluster.
</source>
</syntaxhighlight>


==예시 2==
==예시 2==
{{소스헤더|master}}
{{소스헤더|master}}
<source lang='console'>
<syntaxhighlight lang='console'>
master1:~$ kubeadm token list
master1:~$ kubeadm token list
TOKEN                    TTL      EXPIRES                USAGES            DESCRIPTION                                                EXTRA GROUPS
TOKEN                    TTL      EXPIRES                USAGES            DESCRIPTION                                                EXTRA GROUPS
102952.1a7dd4cc8d1f4cc5  23h      2019-03-24T13:22:58Z  authentication,signing  The default bootstrap token generated by 'kubeadm init'.  system:bootstrappers:kubeadm:default-node-token
102952.1a7dd4cc8d1f4cc5  23h      2019-03-24T13:22:58Z  authentication,signing  The default bootstrap token generated by 'kubeadm init'.  system:bootstrappers:kubeadm:default-node-token
</source>
</syntaxhighlight>
{{소스헤더|worker}}
{{소스헤더|worker}}
<source lang='console'>
<syntaxhighlight lang='console'>
worker02:~$ kubeadm join --discovery-token-unsafe-skip-ca-verification --token=102952.1a7dd4cc8d1f4cc5 172.17.0.21:6443
worker02:~$ kubeadm join --discovery-token-unsafe-skip-ca-verification --token=102952.1a7dd4cc8d1f4cc5 172.17.0.21:6443
[preflight] running pre-flight checks
[preflight] running pre-flight checks
51번째 줄: 51번째 줄:


Run 'kubectl get nodes' on the master to see this node join the cluster.
Run 'kubectl get nodes' on the master to see this node join the cluster.
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2024년 2월 25일 (일) 02:39 기준 최신판

1 개요[ | ]

kubeadm join

2 예시 1[ | ]

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@worker02:~# kubeadm join --token i50r58.e8dx9hd9m6tmv6603 172.20.0.150:6443 --discovery-token-ca-cert-hash sha256:e8ee89003791b7340e6361b8f20663571d1156d393057fc8a816857b0f965984
[preflight] Running pre-flight checks
	[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
[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'
...
This node has joined the cluster:
* Certificate signing request was sent to apiserver and a response was received.
* The Kubelet was informed of the new secure connection details.

Run 'kubectl get nodes' on the control-plane to see this node join the cluster.

3 예시 2[ | ]

master
master1:~$ kubeadm token list
TOKEN                     TTL       EXPIRES                USAGES            DESCRIPTION                                                EXTRA GROUPS
102952.1a7dd4cc8d1f4cc5   23h       2019-03-24T13:22:58Z   authentication,signing   The default bootstrap token generated by 'kubeadm init'.   system:bootstrappers:kubeadm:default-node-token
worker
worker02:~$ kubeadm join --discovery-token-unsafe-skip-ca-verification --token=102952.1a7dd4cc8d1f4cc5 172.17.0.21:6443
[preflight] running pre-flight checks
        [WARNING RequiredIPVSKernelModulesAvailable]: the IPVS proxier will not be used, because the following required kernel modules are not loaded: [ip_vs ip_vs_rr ip_vs_wrr ip_vs_sh] or no builtin kernel ipvs support: map[ip_vs:{} ip_vs_rr:{} ip_vs_wrr:{} ip_vs_sh:{} nf_conntrack_ipv4:{}]
you can solve this problem with following methods:
 1. Run 'modprobe -- ' to load missing kernel modules;
2. Provide the missing builtin kernel ipvs support
...
This node has joined the cluster:
* Certificate signing request was sent to master and a response
  was received.
* The Kubelet was informed of the new secure connection details.

Run 'kubectl get nodes' on the master to see this node join the cluster.

4 같이 보기[ | ]

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