inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

대세는 쿠버네티스 (초급~중급편)

쿠버네티스 설치 오류 [ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist

5088

Ellenjj

작성한 질문수 1

1

안녕하세요 쿠버네티스 설치 후 join.sh에 아무내용이 안나와서 설치과정 확인해보니
아래와같은 에러가 나오는데 어떻게 해결하면될까요.. ?
k8s-master: Running provisioner: shell... k8s-master: Running: inline script k8s-master: I0628 11:30:40.411653 14444 version.go:255] remote version is much newer: v1.24.2; falling back to: stable-1.22 k8s-master: [init] Using Kubernetes version: v1.22.11 k8s-master: [preflight] Running pre-flight checks k8s-master: [preflight] WARNING: Couldn't create the interface used for talking to the container runtime: docker is required for container runtime: exec: "docker": executable file not found in $PATH k8s-master: error execution phase preflight: [preflight] Some fatal errors occurred: k8s-master: [ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist k8s-master: [ERROR FileContent--proc-sys-net-ipv4-ip_forward]: /proc/sys/net/ipv4/ip_forward contents are not set to 1 k8s-master: [preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...` k8s-master: To see the stack trace of this error execute with --v=5 or higher k8s-master: failed to load admin kubeconfig: open /root/.kube/config: no such file or directory k8s-master: To see the stack trace of this error execute with --v=5 or higher k8s-master: cp: cannot stat ‘/etc/kubernetes/admin.conf’: No such file or directory k8s-master: chown: cannot access ‘/root/.kube/config’: No such file or directory k8s-master: Loaded plugins: fastestmirror k8s-master: Loading mirror speeds from cached hostfile
 

docker kubernetes

답변 3

2

일프로

오래된 내용이지만, 해당 문제 해결방법입니다.

modprobe br_netfilter

echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables

같은 문제를 겪으신 분들께서 참고하시길 바래요.

1

Ellenjj

안녕하세요 여러번 재설치 했는데 같은 오류가나와서..

해결방법 또는 제가 어떤부분을 확인해보면될까요..?

0

일프로

그러시군요..

일반적으로 초반에 네트워크 세팅을 잘못해서 문제가 발생될 가능성도 큼니다.

강의와는 다르게 네트워크를 임의로 세팅한 부분 없으실까요?

있다면 어떻게 세팅했는지 캡쳐해주시면 같이 확인해보겠습니다.

0

일프로

안녕하세요. 해당 에러는 통상 아래 설정이 안되있을때 나는 에러입니다.

-----------------------

# Iptables 커널 옵션 활성화

cat <<EOF >  /etc/sysctl.d/k8s.conf

net.bridge.bridge-nf-call-ip6tables = 1

net.bridge.bridge-nf-call-iptables = 1

EOF

sysctl --system

-----------------------

 

근데 제 Vagrantfile 스크립트에 있는 내용이라 제대로 안먹혔을리는 없을것 같은데,

에러해결보다 다 지우시고 다시한번 설치해보시길 권해드려요.

 

[15. ConfigMap, Secret - 실습] Env (File) 실습 시 문의사항

1

58

2

Node Schedule 실습 시 pod3 생성 시 메모리 요청량이 올라가지 않는 사항

1

45

1

Guest OS

1

62

2

kubeTM Blog는 없어진건가요????

1

66

2

yml 작성하다가 에러 발생해서 문의 드립니다.

0

66

2

설치수업중에 질문드립니다.

1

88

2

기초다지기 설치 문의드립니다.

1

129

4

HPA 부분 Auto Scaler 설치하는 링크가 없습니다!!

1

79

3

클러스터 초기화 및 팟 네트워크 세팅시 문제가 있습니다

1

115

1

환경 구성에 있어서 질문드립니다

1

107

2

configMap 파일생성

1

89

2

dashboard에서 pod 생성이 되지 않습니다.

1

98

2

nodePort 서비스 접근 Client sent an HTTP request to an HTTPS server

1

89

2

대시보드 화면이 달라요 ㅠㅠ

1

70

2

대시보드 접근이 안됩니다!

1

111

2

Ingress실습에 난관이 있습니다

1

76

2

master 노드에서 ssh 로그인 창이 안뜨는 오류

1

104

3

안녕하세요 일프로님 궁금한 거 있습니다

0

64

1

7강 마지막 대시 보드 출력에 관한 문제

1

72

2

Could not resolve host: externalname1; Unknown error

0

70

2

Failed to create pod sandbox

1

107

2

자료실을 못 찾겠습니다 ㅜ ㅡ ㅜ

0

70

2

0/3 nodes are available

1

63

2

Back-off restarting fail~~

1

125

4