본문 바로가기
728x90
반응형

분류 전체보기186

[Kubernetes] error: You must be logged in to the server (the server has asked for the client to provide credentials ( pods/log ... ) ) After renewing certs, if the below error occurred. $ kubectl logs foo-5c76dc6585-b2lms error: You must be logged in to the server (the server has asked for the client to provide credentials ( pods/log foo-5c76dc6585-b2lms) ) Restart docker to change certs on control plane containers. $ systemctl restart docker $ systemctl restart kubelet 2021. 11. 9.
[MSA] Microservices Architecture: 마이크로서비스란 MSA (Microservices Architecture) 란 기존 모노리틱(Monolithic) 구조와는 다르게 하나의 서비스를 작은 컴포넌트 단위로 나누어 관리하고 개발하는 것을 말한다. 기존 모노리틱 구조는 전체 애플리케이션이 하나로 되어있어 개발 환경설정이 간단한 편입니다. 하나의 애플리케이션으로 구성되어 있기 때문에 운영관리가 편한편이지만 애플리케이션 볼륨이 커질 경우 관리가 취약해질 수 있으며 모노리틱 구조상 하나의 애플리케이션으로 구성되어 있기 때문에 해당 애플리케이션이 문제가 생길 경우 전체 시스템에 영향을 미칠 수 있는 단점이 있습니다. 모노리틱 구조를 간단하게 아래와 같이 요약할 수 있습니다. 운영과 개발 환경설정이 간편하나 선택적으로 확장이 불가능 합니다. 애플리케이션에 문제가 생길 .. 2021. 11. 4.
[Kubernetes] error: You must be logged in to the server (Unauthorized) kubectl 명령어 사용시 아래 에러가 발생하면 config 파일을 User 폴더에 복사한 후 다시 실행해보자. $ kubectl get pod error: You must be logged in to the server (Unauthorized) 아래와 같이 실행 후 확인 $ mkdir -p $HOME/.kube $ sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config $ sudo chown $(id -u):$(id -g) $HOME/.kube/config $ kubectl get pods NAME READY STATUS RESTARTS AGE foo-6ffdbf578-9kpjm 1/1 Running 1 13d foo-6ffdbf578-lqkqh 1/1.. 2021. 11. 3.
[Kubernetes] kubelet error: Failed to start ContainerManager Invalid Node Allocatable configuration. Resource "memory" has an allocatable of Cluster join을 마치고 kubelet이 정상적으로 실행 되지 않는 현상이 발생 했다. # systemctl status kubelet ● kubelet.service - kubelet Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled) Active: activating (auto-restart) (Result: exit-code) since Wed 2021-11-03 16:00:11 CST; 3s ago Process: 314223 ExecStart=/usr/bin/kubelet ... --kube-reserved=cpu=200m,memory=4830Mi (code=exited, sta.. 2021. 11. 3.
728x90
반응형