etcd backup Develop/DevOps 2021. 12. 16. [MLOps] CKA Mock Exam 틀린거 정리 Deployment에 serviceaccount 추가 pod과 동일하게 spec밑에 serviceaccountName 정보를 넣어줘야한다 spec: serviceAccountName: dashboard-sa Linux 명령어 관련 tr 명령어 tr [arg1] [arg2] : arg1을 arg2로 변환 - 출력에서 스페이스 대신 개행으로 출력이 필요하다면 : tr " " "\n" 으로 awk명령어 정확하게는 모르지만, arg1 arg2 arg3 이 있을때 arg2만 출력하고싶다면 awk '{print $2}' 로 활용 kubeconfig 파일 오류확인 방법 kubectl cluster-info --kubeconfig=CKA/super.kubeconfig kubeadm 으로 certification 만료했.. Develop/DevOps 2021. 12. 4. [MLOps] Kubernetes CKA자격증 공부 - Maintenance Drain & Cordon node01을 업그레이드 하기위해서는 먼저 일시정지를 시켜줘야한다. 그럴땐 다음과같은 drain 명령어로 처리. kubectl drain node01 --ignore-daemonsets 다시 활성화를 시켜주려면 uncordon 명령어로 처리 kubectl uncordon node01 기존에 node01에서 돌던 pod들은 다른 활성화(taint가 되지않은)된 node로 넘어가게되고, node01을 다시 활성화 시켜준다해도 복귀하지않는다. 만약에 다른 활성화된 node로도 못옮기는상태에서 첫번째 명령어를 실행시키게된다면 error: unable to drain node "node01", aborting command... There are pending nodes to be dr.. 이전 1 다음