what is this error related to?
I am configuring the cp node sing gcp and on step 3.1.23 when running the following command:
kubeadm init --config=kubeadm-config.yaml --upload-certs | tee kubeadm-init.out
I get this error:
[ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist
what have i done wrong?
Best Answers
-
Hi @angel.olivares,
Please revisit step 10 of Lab exercise 3.1 and verify the content of the
/etc/sysctl.d/kubernetes.conf
file matches the content of the grayed text box. Ensure there are no empty spaces preceding either of thenet....
lines. If any corrections are necessary, run step 11 as well.Regards,
-Chris0 -
Thanks Chris, super fast and effective reply. Kind regards
0
Answers
-
Hi, this time im trying the setup froma Vm running with virtual box, error is the same and the selution doesn't work this time.
when running the command with v=5 i get:
[email protected]:~# kubeadm init --config=kubeadm-config.yaml --upload-certs --v=5 | tee kubeadm-init.out
I0228 04:29:50.787363 2296 initconfiguration.go:255] loading configuration from "kubeadm-config.yaml"
W0228 04:29:50.787843 2296 initconfiguration.go:306] error unmarshaling configuration schema.GroupVersionKind{Group:"kubeadm.k8s.io", Version:"v1beta3", Kind:"ClusterConfiguration"}: strict decoding error: unknown field "KubernetesVersion"
I0228 04:29:50.788082 2296 initconfiguration.go:117] detected and using CRI socket: unix:///var/run/containerd/containerd.sock
I0228 04:29:50.790127 2296 interface.go:432] Looking for default routes with IPv4 addresses
I0228 04:29:50.790145 2296 interface.go:437] Default route transits interface "enp0s3"
I0228 04:29:50.790927 2296 interface.go:209] Interface enp0s3 is up
I0228 04:29:50.790997 2296 interface.go:257] Interface "enp0s3" has 3 addresses :[192.168.1.139/24 2a0c:5a81:206:9d00:a00:27ff:fee2:a39b/64 fe80::a00:27ff:fee2:a39b/64].
I0228 04:29:50.791028 2296 interface.go:224] Checking addr 192.168.1.139/24.
I0228 04:29:50.791037 2296 interface.go:231] IP found 192.168.1.139
I0228 04:29:50.791050 2296 interface.go:263] Found valid IPv4 address 192.168.1.139 for interface "enp0s3".
I0228 04:29:50.791062 2296 interface.go:443] Found active IP 192.168.1.139
I0228 04:29:50.791091 2296 kubelet.go:214] the value of KubeletConfiguration.cgroupDriver is empty; setting it to "systemd"
I0228 04:29:50.795347 2296 version.go:186] fetching Kubernetes version from URL: https://dl.k8s.io/release/stable-1.txt
I0228 04:29:51.168290 2296 version.go:255] remote version is much newer: v1.26.1; falling back to: stable-1.24
I0228 04:29:51.168558 2296 version.go:186] fetching Kubernetes version from URL: https://dl.k8s.io/release/stable-1.24.txt
I0228 04:29:51.509438 2296 checks.go:570] validating Kubernetes and kubeadm version
I0228 04:29:51.509497 2296 checks.go:170] validating if the firewall is enabled and active
[init] Using Kubernetes version: v1.24.10
[preflight] Running pre-flight checks
I0228 04:29:51.523120 2296 checks.go:205] validating availability of port 6443
I0228 04:29:51.523283 2296 checks.go:205] validating availability of port 10259
I0228 04:29:51.523336 2296 checks.go:205] validating availability of port 10257
I0228 04:29:51.523394 2296 checks.go:282] validating the existence of file /etc/kubernetes/manifests/kube-apiserver.yaml
I0228 04:29:51.523408 2296 checks.go:282] validating the existence of file /etc/kubernetes/manifests/kube-controller-manager.yaml
I0228 04:29:51.523421 2296 checks.go:282] validating the existence of file /etc/kubernetes/manifests/kube-scheduler.yaml
I0228 04:29:51.523430 2296 checks.go:282] validating the existence of file /etc/kubernetes/manifests/etcd.yaml
I0228 04:29:51.523438 2296 checks.go:432] validating if the connectivity type is via proxy or direct
I0228 04:29:51.523457 2296 checks.go:471] validating http connectivity to first IP address in the CIDR
I0228 04:29:51.523478 2296 checks.go:471] validating http connectivity to first IP address in the CIDR
I0228 04:29:51.523506 2296 checks.go:106] validating the container runtime
I0228 04:29:51.553234 2296 checks.go:331] validating the contents of file /proc/sys/net/bridge/bridge-nf-call-iptables
I0228 04:29:51.553297 2296 checks.go:331] validating the contents of file /proc/sys/net/ipv4/ip_forward
I0228 04:29:51.553346 2296 checks.go:646] validating whether swap is enabled or not
I0228 04:29:51.553387 2296 checks.go:372] validating the presence of executable crictl
I0228 04:29:51.553425 2296 checks.go:372] validating the presence of executable conntrack
I0228 04:29:51.553457 2296 checks.go:372] validating the presence of executable ip
I0228 04:29:51.553491 2296 checks.go:372] validating the presence of executable iptables
I0228 04:29:51.553529 2296 checks.go:372] validating the presence of executable mount
I0228 04:29:51.553553 2296 checks.go:372] validating the presence of executable nsenter
I0228 04:29:51.553578 2296 checks.go:372] validating the presence of executable ebtables
I0228 04:29:51.553608 2296 checks.go:372] validating the presence of executable ethtool
I0228 04:29:51.553635 2296 checks.go:372] validating the presence of executable socat
I0228 04:29:51.553650 2296 checks.go:372] validating the presence of executable tc
I0228 04:29:51.553667 2296 checks.go:372] validating the presence of executable touch
I0228 04:29:51.553689 2296 checks.go:518] running all checks
I0228 04:29:51.578406 2296 checks.go:403] checking whether the given node name is valid and reachable using net.LookupHost
I0228 04:29:51.578596 2296 checks.go:612] validating kubelet version
I0228 04:29:51.644772 2296 checks.go:132] validating if the "kubelet" service is enabled and active
I0228 04:29:51.659118 2296 checks.go:205] validating availability of port 10250
I0228 04:29:51.659388 2296 checks.go:205] validating availability of port 2379
I0228 04:29:51.659655 2296 checks.go:205] validating availability of port 2380
I0228 04:29:51.659961 2296 checks.go:245] validating the existence and emptiness of directory /var/lib/etcd
[preflight] Some fatal errors occurred:
[ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist
[preflight] If you know what you are doing, you can make a check non-fatal with--ignore-preflight-errors=...
error execution phase preflight
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(Runner).Run.func1
cmd/kubeadm/app/cmd/phases/workflow/runner.go:235
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(Runner).visitAll
cmd/kubeadm/app/cmd/phases/workflow/runner.go:421
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(Runner).Run
cmd/kubeadm/app/cmd/phases/workflow/runner.go:207
k8s.io/kubernetes/cmd/kubeadm/app/cmd.newCmdInit.func1
cmd/kubeadm/app/cmd/init.go:153
k8s.io/kubernetes/vendor/github.com/spf13/cobra.(Command).execute
vendor/github.com/spf13/cobra/command.go:856
k8s.io/kubernetes/vendor/github.com/spf13/cobra.(Command).ExecuteC
vendor/github.com/spf13/cobra/command.go:974
k8s.io/kubernetes/vendor/github.com/spf13/cobra.(Command).Execute
vendor/github.com/spf13/cobra/command.go:902
k8s.io/kubernetes/cmd/kubeadm/app.Run
cmd/kubeadm/app/kubeadm.go:50
main.main
cmd/kubeadm/kubeadm.go:25
runtime.main
/usr/local/go/src/runtime/proc.go:250
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:15710 -
Hi i solved it by running steps 9 to 11 again.
0
Categories
- 10.1K All Categories
- 35 LFX Mentorship
- 88 LFX Mentorship: Linux Kernel
- 504 Linux Foundation Boot Camps
- 279 Cloud Engineer Boot Camp
- 103 Advanced Cloud Engineer Boot Camp
- 48 DevOps Engineer Boot Camp
- 41 Cloud Native Developer Boot Camp
- 2 Express Training Courses
- 2 Express Courses - Discussion Forum
- 1.7K Training Courses
- 17 LFC110 Class Forum
- 5 LFC131 Class Forum
- 19 LFD102 Class Forum
- 148 LFD103 Class Forum
- 12 LFD121 Class Forum
- 61 LFD201 Class Forum
- LFD210 Class Forum
- 1 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum
- 23 LFD254 Class Forum
- 569 LFD259 Class Forum
- 100 LFD272 Class Forum
- 1 LFD272-JP クラス フォーラム
- 1 LFS145 Class Forum
- 23 LFS200 Class Forum
- 739 LFS201 Class Forum
- 1 LFS201-JP クラス フォーラム
- 1 LFS203 Class Forum
- 45 LFS207 Class Forum
- 298 LFS211 Class Forum
- 53 LFS216 Class Forum
- 46 LFS241 Class Forum
- 41 LFS242 Class Forum
- 37 LFS243 Class Forum
- 10 LFS244 Class Forum
- 27 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- 131 LFS253 Class Forum
- 996 LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 87 LFS260 Class Forum
- 126 LFS261 Class Forum
- 31 LFS262 Class Forum
- 79 LFS263 Class Forum
- 15 LFS264 Class Forum
- 10 LFS266 Class Forum
- 17 LFS267 Class Forum
- 17 LFS268 Class Forum
- 21 LFS269 Class Forum
- 200 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- 212 LFW211 Class Forum
- 153 LFW212 Class Forum
- 899 Hardware
- 217 Drivers
- 74 I/O Devices
- 44 Monitors
- 115 Multimedia
- 208 Networking
- 101 Printers & Scanners
- 85 Storage
- 749 Linux Distributions
- 88 Debian
- 64 Fedora
- 14 Linux Mint
- 13 Mageia
- 24 openSUSE
- 133 Red Hat Enterprise
- 33 Slackware
- 13 SUSE Enterprise
- 355 Ubuntu
- 473 Linux System Administration
- 38 Cloud Computing
- 69 Command Line/Scripting
- Github systems admin projects
- 94 Linux Security
- 77 Network Management
- 108 System Management
- 49 Web Management
- 63 Mobile Computing
- 22 Android
- 27 Development
- 1.2K New to Linux
- 1.1K Getting Started with Linux
- 528 Off Topic
- 127 Introductions
- 213 Small Talk
- 20 Study Material
- 794 Programming and Development
- 262 Kernel Development
- 498 Software Development
- 923 Software
- 258 Applications
- 182 Command Line
- 2 Compiling/Installing
- 76 Games
- 316 Installation
- 53 All In Program
- 53 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)