본문 바로가기

반응형

⭐ Kubernetes & EKS/pod (파드)

(4)
pod 특징 pod는 tcp인지 http인지 구분하지 않는다. 그래서 protocolless 서비스이고 프로토콜을 구분하는건 service 이다.
pod 내부 접근 에러 : The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file. # pod 내부로 접근하여 apt update 등 명령어 실행시 아래의 오류가 발생함 The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file. - 해결방법 Commands: I used these bash commands to make the replacement: replace deb.debian.org with archive.debian.org: sudo sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list replace security.debian.org with archive.debian..
pod 생성 및 삭제 # 쿠버네티스에서 pod을 생성하고 삭제하는 방법에 대하여. # pod 생성 kubectl에는 create와 appy가 있는데, create -f 로 하면 이후에 apply를 통해 다시 반영할 수 없다. 하지만 처음부터 apply -f 로 하면 계속 apply할 수 있다는 차이점이 있다. $ kubectl create -f nginx-deployment.yaml pod 상태를 조회한다. $ kubectl get pods NAME READY STATUS RESTARTS AGE nginx-deployment-adwasd 0/1 Pending 0 6m nginx-deployment-asdwsdw 0/1 Pending 0 6m 3. pod 삭제 $ kubectl delete -f nginx-deployment...
pod 재시작 # kubernetes Pod 재시작 사용법 : kubectl get pod -n -o yaml | kubectl replace --force -f- kubectl get pod -n -o yaml | kubectl replace --force -f- 문법을 보면 알겠지만 파드(Pod)를 재시작한다라기 보다 삭제하고 다시 만든다고 보는게 맞을것 같다. 예시) web Pod 재시작 shell> kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.96.0.11 443/TCP 10d web ClusterIP 10.105.13.151 8080/TCP 40h web2 ClusterIP 10.105.146.101 8..

728x90
반응형