kubeadm
kubeadm init certificate-key 까먹었을때 ,
kubeadm init phase upload-certs --upload-certs
kubeadm init phase upload-certs --upload-certs
kubeadm init token 까먹었을때,
kubeadm token list
Hash 확인,
openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex | sed 's/^.* //'
Kubernetes API Server:PORT 확인,
kubectl cluster-info
kubeadm join <Kubernetes API Server:PORT> --token <Token 값> --discovery-token-ca-cert-hash sha256:<Hash 값>
kubectl get nodes >> master node 에서 확인
반응형
'Infra > MLops' 카테고리의 다른 글
[k8s error]System has not been booted with systemd as init system (PID 1). Can't operate.Failed to connect to bus: Host is down (2) | 2022.02.16 |
---|---|
[k8s]명령어 정리 (2) | 2022.02.15 |
[k8s]k8s설치하기 (4) | 2022.02.15 |
git project pull (0) | 2022.02.07 |
[kubeflow]kubeflow란 ? (0) | 2022.01.26 |