Microsoft MVP성태의 닷넷 이야기
오류 유형: 790. AKS/k8s - pod 상태가 Pending으로 지속되는 경우 [링크 복사], [링크+제목 복사],
조회: 9422
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

AKS/k8s - pod 상태가 Pending으로 지속되는 경우

pod를 띄웠는데,

C:\temp> kubectl apply -f  aks.razor31_sample.yaml
deployment.apps/net-razor31-sample created
service/dotnet-razor31-sample created

일정 시간이 지났는데도 여전히 "Pending" 상태입니다.

c:\temp> kubectl get pod
NAME                                  READY   STATUS    RESTARTS   AGE
net-razor31-sample-6b747bb886-mldk2   0/1     Pending   0          4m50s

당황하지 마시고, describe 옵션을 주면 대부분의 오류 원인을 밝힐 수 있습니다.

C:\temp> kubectl describe pod net-razor31-sample
Name:           net-razor31-sample-6b747bb886-mldk2
Namespace:      default
Priority:       0
Node:           <none>
Labels:         app=dotnet-razor31-sample
...[생략]...
Events:
  Type     Reason             Age                   From                Message
  ----     ------             ----                  ----                -------
  Warning  FailedScheduling   5m20s                 default-scheduler   0/1 nodes are available: 1 persistentvolumeclaim "my-azure-file" not found.
  Warning  FailedScheduling   5m18s                 default-scheduler   0/1 nodes are available: 1 persistentvolumeclaim "my-azure-file" not found.
  Normal   NotTriggerScaleUp  17s (x31 over 5m18s)  cluster-autoscaler  pod didn't trigger scale-up: 1 persistentvolumeclaim "my-azure-file" not found

보는 바와 같이, 이번에는 aks.razor31_sample.yaml에 볼륨 연결을 지정했던,

...[생략]...
      volumes:
        - name: volume
          persistentVolumeClaim:
            claimName: my-azure-file
...[생략]...

my-azure-file 이름의 PV가 없어서 발생한 것입니다. 이 외에도 k8s에서 발생하는 거의 모든 오류 원인을 "describe" 옵션 하나로 밝혀지는 것이 많습니다. ^^




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 1/26/2022]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 16  17  18  19  [20]  21  22  23  24  25  26  27  28  29  30  ...
NoWriterDateCnt.TitleFile(s)
13135정성태10/5/20226569.NET Framework: 2053. 리눅스 환경의 .NET Core 3/5+ 메모리 덤프를 분석하는 방법 - 두 번째 이야기
13134정성태10/4/20225302오류 유형: 820. There is a problem with AMD Radeon RX 5600 XT device. For more information, search for 'graphics device driver error code 31'
13133정성태10/4/20225600Windows: 211. Windows - (commit이 아닌) reserved 메모리 사용량 확인 방법 [1]
13132정성태10/3/20225510스크립트: 42. 파이썬 - latexify-py 패키지 소개 - 함수를 mathjax 식으로 표현
13131정성태10/3/20228237.NET Framework: 2052. C# - Windows Forms의 데이터 바인딩 지원(DataBinding, DataSource) [2]파일 다운로드1
13130정성태9/28/20225222.NET Framework: 2051. .NET Core/5+ - 에러 로깅을 위한 Middleware가 동작하지 않는 경우파일 다운로드1
13129정성태9/27/20225534.NET Framework: 2050. .NET Core를 IIS에서 호스팅하는 경우 .NET Framework CLR이 함께 로드되는 환경
13128정성태9/23/20228144C/C++: 158. Visual C++ - IDL 구문 중 "unsigned long"을 인식하지 못하는 #import파일 다운로드1
13127정성태9/22/20226601Windows: 210. WSL에 systemd 도입
13126정성태9/15/20227229.NET Framework: 2049. C# 11 - 정적 메서드에 대한 delegate 처리 시 cache 적용
13125정성태9/14/20227447.NET Framework: 2048. C# 11 - 구조체 필드의 자동 초기화(auto-default structs)
13124정성태9/13/20227184.NET Framework: 2047. Golang, Python, C#에서의 CRC32 사용
13123정성태9/8/20227631.NET Framework: 2046. C# 11 - 멤버(속성/필드)에 지정할 수 있는 required 예약어 추가
13122정성태8/26/20227535.NET Framework: 2045. C# 11 - 메서드 매개 변수에 대한 nameof 지원
13121정성태8/23/20225526C/C++: 157. Golang - 구조체의 slice 필드를 Reflection을 이용해 변경하는 방법
13120정성태8/19/20227060Windows: 209. Windows NT Service에서 UI를 다루는 방법 [3]
13119정성태8/18/20226609.NET Framework: 2044. .NET Core/5+ 프로젝트에서 참조 DLL이 보관된 공통 디렉터리를 지정하는 방법
13118정성태8/18/20225471.NET Framework: 2043. WPF Color의 기본 색 영역은 (sRGB가 아닌) scRGB [2]
13117정성태8/17/20227638.NET Framework: 2042. C# 11 - 파일 범위 내에서 유효한 타입 정의 (File-local types)파일 다운로드1
13116정성태8/4/20228084.NET Framework: 2041. C# - Socket.Close 시 Socket.Receive 메서드에서 예외가 발생하는 문제파일 다운로드1
13115정성태8/3/20228474.NET Framework: 2040. C# - ValueTask와 Task의 성능 비교 [1]파일 다운로드1
13114정성태8/2/20228649.NET Framework: 2039. C# - Task와 비교해 본 ValueTask 사용법파일 다운로드1
13113정성태7/31/20227878.NET Framework: 2038. C# 11 - Span 타입에 대한 패턴 매칭 (Pattern matching on ReadOnlySpan<char>)
13112정성태7/30/20228272.NET Framework: 2037. C# 11 - 목록 패턴(List patterns) [1]파일 다운로드1
13111정성태7/29/20228048.NET Framework: 2036. C# 11 - IntPtr/UIntPtr과 nint/nuint의 통합파일 다운로드1
13110정성태7/27/20228092.NET Framework: 2035. C# 11 - 새로운 연산자 ">>>" (Unsigned Right Shift)파일 다운로드1
... 16  17  18  19  [20]  21  22  23  24  25  26  27  28  29  30  ...