이쿠의 슬기로운 개발생활

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

반응형

전체 글 415

오류 : 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.0.1,..

Kubernetes Static Pod 설정 경로 확인

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

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 관리자에 적합한 자격증.  자격증 ..

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

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

kubectl 축약어 정리

자주 사용하는 축약어만 별도로 정리해봄. pod : poreplicationcontroller : rcreplicaset : rsdeployment : deploynamespace : nsservice : svccertificatesigningrequest : csringress : ingnetworkpolicies : netpolnode: nopersistentvolumeclaim : pvcpersistentvolume : pvserviceaccount : sadaemonset : ds --namespace : -n--selector : -l--all-namespace : -A--output : -o    제 글을 복사할 시 출처를 명시해주세요.글에 오타, 오류가 있다면 댓글로 알려주세요! 바로 수정하..

오류 : 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.yamlkubernetes cluster에 cAdvisor Daemonset 를 배포했는데 다음과 같은 오류가 발생함.[오류 메세지]Could not configure a source for OOM detection, disabling OOM events: open /dev/kmsg: no such file or directoryFai..

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가 수집..

VSCode 오류 해결 : The python path in your debug configuration is invalid

VSCode Python Debug 오류 해결 상황 VS code에서 python 코드 Debugging 을 위해 F5키를 누르면 Debug가 실행되지 않고 오류가 발생함. 또는 기존 VS code로 debug를 잘 사용하고 있다가 폴더를 변경한 후 VS code로 Python 코드 디버깅을 시도하면 동일한 오류 발생. 오류명 The python path in your debug configuration is invalid 원인 파이썬 경로가 제대로 설정되어있지 않아서 발생함. vs code에서 파이썬 경로를 다시 설정해줘야함. 해결법 1. Ctrl + Shift + P 단축키 실행. 2. 상위 검색 창에 python: Select Interpreter 입력 3. 파이썬이 설치되어있는 경로의 python..

코딩/Python 2021.07.10

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가 제공하는 기능 이외에 더 많은 기능을 제공할 수 있도록 ..

python 개념 정리

Python Python이란? 고급언어 인터프리터 언어 문법이 쉽고 간결함 오픈소스 다른언어로 만든 프로그램을 파이썬 프로그램에 포함시킬 수 있음 다양한 라이브러리가 많이 존재함 생산성이 높아서 프로그램을 빠르게 개발할 수 있음 변수와 데이터 타입 특징 변수의 Type을 자동으로 설정 데이터 Type 정리 1. 숫자형 ( int, float ) 실수의 경우 double 이 없고 무조건 float 로 표현 2. 불리언 ( boolean ) 3. 문자열 ( string ) 3.1. 큰따옴표(" ")로 감싸기 3.2. 작은따옴표(' ')로 감싸기 큰따옴표, 작은따옴표 가 있는 이유는 문자열에서 따옴표를 정확히 표현하기 위함 C/C++의 경우 1. 큰따옴표( " ) 를 출력하는 법 : \" 파이썬도 위와같은 방..

코딩/Python 2021.06.06
반응형