본문 바로가기
728x90

컨테이너13

[K8S] CNI Weave net dial tcp 127.0.0.1:6784: connect: connection refused, failed to clean up sandbox container k8s 클러스터 구성 후. kubectl get pod --all-namespaces를 보면 coredns가 정상적으로 Running 되지 않고 아래와 같이 ContainerCreating 상태로 STUCK 걸리는 현상이 발생했다.. NAMESPACE NAME READY STATUS RESTARTS AGE kube-system coredns-78fcd69978-47ngc 0/1 ContainerCreating 0 16m kube-system coredns-78fcd69978-n7dst 0/1 ContainerCreating 0 16m 심지어 weave net 관련한 pod들도 계속 error 상태로 확인되었다. coredns 관련 파드의 로그를 상세히 보기 위해 아래와 같이 describe 명령어를 입력.. 2021. 11. 3.
[K8S] kubectl get nodes시, Unable to connect to the server: x509 TLS 인증서 오류 master/ node1/ node2 가상머신을 기동하고 나서, master 장비에서 k8s 클러스터 조인을 확인하기 위해 $ kubectl get nodes 커맨드시에 아래와 같이 TLS 인증서 오류 메세지가 떨어진다. Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") 해당 메세지를 해결하기 위해서 export KUBECONFIG=/etc/kubernetes/admin.conf로 가능하지만, 장비.. 2021. 11. 3.
[K8S] kubeadm init시에 Get http://localhost:10248/healthz: dial tcp 127.0.0.1:10248: connect: connection refused 에러 Ubuntu 20:04 LTS 환경에서 kubeadm init으로 k8s 클러스터 구성시에 Get http://localhost:10248/healthz: dial tcp 127.0.0.1:10248: connect: connection refused 에러가 계속 발생하며 진행이 되지 않았다. 솔루션 sudo mkdir /etc/docker cat sudo systemctl start kubelet 위에 커맨드까지 끝나고 나서 kubeadm restart kubeadm init 을 다시 실행하면 정상적으로 처리 된다. 관련 링크 : https://kubernetes.io/docs/setup/production-environment/container-runtimes/#docker 2021. 11. 2.
[Docker] Docker-Compose 설치 https://docs.docker.com/compose/install/ Install Docker Compose docs.docker.com 위 사이트에서 Docker-Compose Install을 따라서 하면 쉽다. 1. Install Compose on Linux systems $ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 2. Apply executable permissions to the binary: $ sudo chmod +x /usr/local/bin/docker-compos.. 2021. 11. 2.
[K8S] 쿠버네티스 설치 Ubuntu:20.04 이번에는 Ubuntu:20.04 위에 쿠버네티스 설치를 해보려고 한다. 이 장을 함께 따라해보고 싶다면 아래 글 2개를 다시 보고 오면 된다. https://syhwang.tistory.com/43?category=1220695 [우분투] K8S 실습 환경을 위한 Ubuntu:20.04 설치 가이드(master/node1/node2) 1. Ubuntu 20.04 LTS 다운로드 https://ubuntu.com > Download > 20.04 LTS Enterprise Open Source and Linux | Ubuntu Ubuntu is the modern, open source operating system on Linux for the enterprise server.. syhwang.tisto.. 2021. 10. 25.
[도커 설치] Docker Installation on Ubuntu:20.04 Docker 설치시에는 반드시 root 계정으로 설치를 진행해야 한다. 1. Docker Install > docs.docker.com을 참조하여 설치 진행 > Download and install > Docker for Linux > Install on Linux https://docs.docker.com/engine/install/ubuntu/ Install Docker Engine on Ubuntu docs.docker.com Set up the repository 부터 차근차근 따라해 가면 된다. 1-1. Update the apt package index and install packages to allow apt to use a repository over HTTPS: $ apt-get upd.. 2021. 10. 24.
728x90