Kubeadm Init Fails - No Internet connection

While executing kubeadm init, it is trying to get details from “https://dl.k8s.io/release/stable-1.txt”. However in our org AWS account, internet connectivity is restricted. In such case, what parameters should we pass to avoid interactions with internet.

I am getting below error

sh-4.2$ kubeadm init
W0105 17:46:48.381821 23838 version.go:104] could not fetch a Kubernetes version from the internet: unable to get URL “https://dl.k8s.io/release/stable-1.txt”: Get “https://dl.k8s.io/release/stable-1.txt”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
W0105 17:46:48.381905 23838 version.go:105] falling back to the local client version: v1.29.0
[init] Using Kubernetes version: v1.29.0
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR IsPrivilegedUser]: user is not running as root
[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=...
To see the stack trace of this error execute with --v=5 or higher

Cluster information:

Kubernetes version: 1.29.0
Cloud being used: bare-metal
Installation method: offline
Host OS: Linux
CNI and version: 1.4.0
CRI and version: 1.29.0