이쿠의 슬기로운 개발생활

함께 성장하기 위한 보안 개발자 EverNote 내용 공유

반응형

클라우드/Kubernetes 105

85. 오류 : Unit kubelet.service entered failed state.

오류 : Unit kubelet.service entered failed state. [상황] 기존 docker version이 1.13 version이였는데 docker version 을 20.? 으로 수정한 후 kubernetes version도 1.22 로 update함. 그 후 kubelet 이 정상 실행이 안되고 있음. [오류 메세지] [systemctl status kubelet 결과] Unit kubelet.service entered failed state. kubelet.service failed. [journalctl -a -f 결과] "Faild to run kubelet" err=failed to run Kubelet: missconfiguration: kubelet cgroup d..

84. 오류 : To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

오류 : To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. 해결법 [상황] kubernetes 1.20 version으로 linux에 kubernetes 환경을 구성하고 외부 windows host에서 kubectl 명령으로 접근 하려고 할때 기존의 matser node의 kubeconfig파일(admin.conf)을 사용했음. [오류 메세지] To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. Unable to connect to the server: x509: certificate is valid for 10.96...

83. kubernetes Static Pod 설정 경로 확인

static pod Path 확인 1. kubelet config file 경로 확인 "ps -ef | grep "kubelet --" | grep -v grep" 결과에서 "--config=" 에 설정되어있는 경로 확인 ex) --config=/var/lib/kubelet/config.yaml 2. static pod path 확인 상위에서 찾은 kubelet config file을 열어서 "staticPadPath:" 설정 값을 확인. 3. static pod 목록을 확인 제 글을 복사할 시 출처를 명시해주세요. 글에 오타, 오류가 있다면 댓글로 알려주세요! 바로 수정하겠습니다!

82. Kubernetes CKA 자격증 취득 후기

kubernetes CKA 자격증 취득 후기 목표 CKA 취득 과정을 정리해봄. 개발자로서 꼭 필요한 자격증은 아니지만.. 공부한게 아깝기도 하고 kubernetes 이해도, 숙련도 향상을 위해서, 그리고 스펙에 한줄정도 추가해보고자 취득함. CKA란? Certified Kubernetes Administrator의 약자로 Kubernetes를 운영하는 CNCF(Cloud Native Computing Foundation)가 직접 인증하는 kubernetes 자격 시험. 주관 : Linux Foundation. 회사에 3명 이상의 CKA 유저가 있다면 KCSP(Kubernetes Certified Service Providers) 인증 신청 가능함. 엔지니어 또는 infra 관리자에 적합한 자격증. 자격..

81. udemy kubernetes 강의 : Lightning Lab - 1 답 정리

udemy kubernetes 강의 : Lightning Lab - 1 답 정리 진행한 udemy 강의 링크 Certified Kubernetes Administrator (CKA) with Practice Tests https://www.udemy.com/course/certified-kubernetes-administrator-with-practice-tests/ 목표 Lightning Lab - 1 강의 test를 100%로 통과하기 1번. 답 [controlplane Node] (업그레이드할 버전 결정) apt update apt-cache madison kubeadm (controlplane node kubeadm 업그레이드) apt-mark unhold kubeadm && \ apt-get u..

80. kubectl 축약어 정리

자주 사용하는 축약어만 별도로 정리해봄. pod : po replicationcontroller : rc replicaset : rs deployment : deploy namespace : ns service : svc certificatesigningrequest : csr ingress : ing networkpolicies : netpol node: no persistentvolumeclaim : pvc persistentvolume : pv serviceaccount : sa daemonset : ds --namespace : -n --selector : -l --all-namespace : -A --output : -o 제 글을 복사할 시 출처를 명시해주세요. 글에 오타, 오류가 있다면 댓글로..

79. 오류 : inotify_add_watch /sys/fs/cgroup/cpuacct,cpu: no such file or directory

오류 : inotify_add_watch /sys/fs/cgroup/cpuacct,cpu: no such file or directory [상황] cAdvisor git에 있는 kubernetes deploy인 아래의 링크를 참고해서 https://github.com/google/cadvisor/blob/master/deploy/kubernetes/base/daemonset.yaml kubernetes cluster에 cAdvisor Daemonset 를 배포했는데 다음과 같은 오류가 발생함. [오류 메세지] Could not configure a source for OOM detection, disabling OOM events: open /dev/kmsg: no such file or director..

78. kubernetes kubelet cAdvisor 분석

kubernetes kubelet cAdvisor kubernetes cluster의 모든 Node에는 kubelet이 설치되어 있음. 해당 kubelet에는 cAdvisor가 탐재되어 있음. cAdvisor는 kubelet 바이너리에 통합된 오픈 소스 에이전트로 cAdvisor를 통해서 Node의 자원 사용량을 모니터링하고 컨테이너의 성능을 분석함. 특정 Node(Pod 레벨에서는 실행되지 않음)에서 실행되고 있는 모든 Container의 CPU와 Memory, File, Network 사용량 등 System metrics 정보를 수집하고 그 외에 시스템 이벤트도 모니터링함. cAdvisor는정보를 수집해서 kubelet의 메모리에 올려놓음. 아래 예제에서는 curl 명령을 통해 해당 cAdvisor가..

77. Kubernetes API Aggregation

Kubernetes API Aggregation Kubernetes API Aggregation이란? Aggregator, Aggregation layer 라고도 불려짐 API Aggregation은 Kubernetes의 Custom Resource 생성방법 중 한가지로 CRD로 생성하는 경우보다 어렵지만 더 많은것을 컨트롤 할 수 있는 Custom Resource 생성 방법. CRD가 많이 업데이트 되서 API Aggregation보다 CRD를 더 많이 사용하지만 kubernetes를 더 깊고 상세하게 컨트롤 해야하는 경우에는 아직 API Aggregation을 사용해야함. Kubernetes Aggregator는 Kubernetes Core API가 제공하는 기능 이외에 더 많은 기능을 제공할 수 있..

76. kubernetes NodePort Networking 분석 (kube-proxy : IPVS mode)

kubernetes NodePort Networking 분석 kube-proxy : IPVS mode CNI = Flannel [kubernetes kube-proxy 관련 글 목록] 54. Kubernetes kube-proxy Mode 분석 70. Kubernetes kube-proxy IPVS Mode 설정 74. Kubernetes NodePort Networking 분석 (kube-proxy : iptable mode) 75. kubernetes LoadBalancer Networking 분석 (kube-proxy : iptable mode) 76. kubernetes NodePort Networking 분석 (kube-proxy : IPVS mode) 목적 kube-proxy IPVS mode..

반응형