Notice
Recent Posts
Recent Comments
Link
«   2024/07   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

JINIers

Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox : open /run/flannel/subnet.env: no such file or directory 해결방법 본문

공부/Docker&K8S

Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox : open /run/flannel/subnet.env: no such file or directory 해결방법

JINIers 2022. 11. 21. 13:15

Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox : open /run/flannel/subnet.env: no such file or directory 해결방법

 

아 진짜 킹받는ㅠㅠ

대체 이거 며칠째 해결하고 있는거묘ㅠㅠ



# 에러코드 확인

kubectl describe pod nx

에러코드

Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "2c33f444a427dff160fdf0f3ad325cbdb6e2117e624599c2d9bfb7180db7c94c": open /run/flannel/subnet.env: no such file or directory

/run/flannel/subnet.env 파일 없는 것 확인


# /run/flannel/subnet.env 파일 생성

FLANNEL_NETWORK=10.244.0.0/16		# 설정한 ip가 있으면 그걸로 설정
FLANNEL_SUBNET=10.244.0.1/24		# 마찬가지
FLANNEL_MTU=1450
FLANNEL_IPMASQ=true


흠 
※ 참고자료
https://terianp.tistory.com/177

를 하고 다시 pod를 생성하면...?

NAME                  READY   STATUS    RESTARTS   AGE
nx-7b4ff8dbd5-csstq   0/1     Pending   0          16s
nx-7b4ff8dbd5-csstq   0/1     Terminating   0          5m14s

Tlqkf....


# 에러코드

0/2 nodes are available: 1 node(s) had untolerated taint {node-role.kubernetes.io/control-plane: }, 1 node(s) had untolerated taint {node.kubernetes.io/unreachable: }. preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling.

 

진짜 킹받네..

 

흐아아이ㅏㄹ아ㅓ아어ㅏ알아아어ㅏㅇ아아

대체 몇번을 뿌셧다 만들었다 뿌셨다 만들었다 렢엔롸잇 렢엔롸잇 지바려ㅓㅇ니ㅏ 미ㅏㅉ떨  ㅣㅏ  ㄴ ㅓㅇㄹ  

집어쳐!!!!!!!!!!!


 

하 다시 정신차리고

kubectl describe pod nx

로 pod 에러메시지 확인

Events:
  Type     Reason            Age                   From               Message
  ----     ------            ----                  ----               -------
  Warning  FailedScheduling  2m47s (x18 over 87m)  default-scheduler  0/2 nodes are available: 1 node(s) had untolerated taint {node-role.kubernetes.io/control-plane: }, 1 node(s) had untolerated taint {node.kubernetes.io/unreachable: }. preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling.

node가 오염 됐댄다..

 

그래서 

# pod 상태 확인

kubectl get pod -A

로 확인하면 

root@flannel-test:~# kc get pod -A
NAMESPACE      NAME                                   READY   STATUS             RESTARTS       AGE
default        nx-7b4ff8dbd5-md47z                    0/1     Pending            0              121m
kube-flannel   kube-flannel-ds-97scq                  0/1     CrashLoopBackOff   6 (129m ago)   135m
kube-flannel   kube-flannel-ds-jcjvj                  0/1     CrashLoopBackOff   31 (12s ago)   135m
kube-system    coredns-565d847f94-fcb4r               1/1     Running            0              140m

아오씨 진짜..

'공부 > Docker&K8S' 카테고리의 다른 글

CI/CD jenkins pipeline restart error  (0) 2023.02.02
centos에 k8s 설치  (0) 2023.01.05
Hyper-V를 이용한 CentOs 설치  (0) 2023.01.05
볼륨마운트하여 jupyter lab 서비스 구축  (0) 2022.12.28
Docker 기초 & 기본 명령어  (0) 2022.12.28
Comments