Kubelet: Error while dialing dial unix: missing address

I am trying to create K8’s cluster with containerd but kubelet is failing to run.

Versions:

Os : Deb 11 bullseye
kubeadm : 1.25.0
kubectl : 1.25.0
kubelet : 1.25.0
containerd : 1.6.8

KubeletConfiguration:

kubeadm config print init-defaults --component-configs KubeletConfiguration

  • groups:
    • system:bootstrappers:kubeadm:default-node-token
      token: abcdef.0123456789abcdef
      ttl: 24h0m0s
      usages:
    • signing
    • authentication
      kind: InitConfiguration
      localAPIEndpoint:
      advertiseAddress: 1.2.3.4
      bindPort: 6443
      nodeRegistration:
      criSocket: unix:///var/run/containerd/containerd.sock
      imagePullPolicy: IfNotPresent
      name: node
      taints: null

apiServer:

timeoutForControlPlane: 4m0s
apiVersion: kubeadm.k8s.io/v1beta3
certificatesDir: /etc/kubernetes/pki
clusterName: kubernetes
controllerManager: {}
dns: {}
etcd:
local:
dataDir: /var/lib/etcd
imageRepository: registry.k8s.io
kind: ClusterConfiguration
kubernetesVersion: 1.25.0
networking:
dnsDomain: cluster.local
serviceSubnet: 10.96.0.0/12
scheduler: {}
apiVersion: kubelet.config.k8s.io/v1beta1
authentication:
anonymous:
enabled: false
webhook:
cacheTTL: 0s
enabled: true
x509:
clientCAFile: /etc/kubernetes/pki/ca.crt
authorization:
mode: Webhook
webhook:
cacheAuthorizedTTL: 0s
cacheUnauthorizedTTL: 0s
cgroupDriver: systemd
clusterDNS:

  • 10.96.0.10
    clusterDomain: cluster.local
    cpuManagerReconcilePeriod: 0s
    evictionPressureTransitionPeriod: 0s
    fileCheckFrequency: 0s
    healthzBindAddress: 127.0.0.1
    healthzPort: 10248
    httpCheckFrequency: 0s
    imageMinimumGCAge: 0s
    kind: KubeletConfiguration
    logging:
    flushFrequency: 0
    options:
    json:
    infoBufferSize: “0”
    verbosity: 0
    memorySwap: {}
    nodeStatusReportFrequency: 0s
    nodeStatusUpdateFrequency: 0s
    rotateCertificates: true
    runtimeRequestTimeout: 0s
    shutdownGracePeriod: 0s
    shutdownGracePeriodCriticalPods: 0s
    staticPodPath: /etc/kubernetes/manifests
    streamingConnectionIdleTimeout: 0s
    syncFrequency: 0s
    volumeStatsAggPeriod: 0s

When i run “sudo kubelet” :

sudo kubelet
I0905 19:08:14.454517 51922 server.go:413] “Kubelet version” kubeletVersion=“v1.25.0”
I0905 19:08:14.454617 51922 server.go:415] “Golang settings” GOGC=“” GOMAXPROCS=“” GOTRACEBACK=“”
I0905 19:08:14.455190 51922 server.go:576] “Standalone mode, no API client”
I0905 19:08:14.494132 51922 server.go:464] “No api server defined - no events will be sent to API server”
I0905 19:08:14.494158 51922 server.go:660] “–cgroups-per-qos enabled, but --cgroup-root was not specified. defaulting to /”
I0905 19:08:14.494359 51922 container_manager_linux.go:262] “Container manager verified user specified cgroup-root exists” cgroupRoot=
I0905 19:08:14.494439 51922 container_manager_linux.go:267] “Creating Container Manager object based on Node Config” nodeConfig={RuntimeCgroupsName: SystemCgroupsName: KubeletCgroupsName: KubeletOOMScoreAdj:-999 ContainerRuntime: CgroupsPerQOS:true CgroupRoot:/ CgroupDriver:cgroupfs KubeletRootDir:/var/lib/kubelet ProtectKernelDefaults:false NodeAllocatableConfig:{KubeReservedCgroupName: SystemReservedCgroupName: ReservedSystemCPUs: EnforceNodeAllocatable:map[pods:{}] KubeReserved:map SystemReserved:map HardEvictionThresholds:[{Signal:imagefs.available Operator:LessThan Value:{Quantity: Percentage:0.15} GracePeriod:0s MinReclaim:} {Signal:memory.available Operator:LessThan Value:{Quantity:100Mi Percentage:0} GracePeriod:0s MinReclaim:} {Signal:nodefs.available Operator:LessThan Value:{Quantity: Percentage:0.1} GracePeriod:0s MinReclaim:} {Signal:nodefs.inodesFree Operator:LessThan Value:{Quantity: Percentage:0.05} GracePeriod:0s MinReclaim:}]} QOSReserved:map ExperimentalCPUManagerPolicy:none ExperimentalCPUManagerPolicyOptions:map ExperimentalTopologyManagerScope:container ExperimentalCPUManagerReconcilePeriod:10s ExperimentalMemoryManagerPolicy:None ExperimentalMemoryManagerReservedMemory: ExperimentalPodPidsLimit:-1 EnforceCPULimits:true CPUCFSQuotaPeriod:100ms ExperimentalTopologyManagerPolicy:none}
I0905 19:08:14.494474 51922 topology_manager.go:134] “Creating topology manager with policy per scope” topologyPolicyName=“none” topologyScopeName=“container”
I0905 19:08:14.494492 51922 container_manager_linux.go:302] “Creating device plugin manager” devicePluginEnabled=true
I0905 19:08:14.494530 51922 state_mem.go:36] “Initialized new in-memory state store”
I0905 19:08:14.494583 51922 util_unix.go:104] “Using this endpoint is deprecated, please consider using full URL format” endpoint=“” URL=“unix://”
W0905 19:08:14.495051 51922 logging.go:59] [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {
“Addr”: “”,
“ServerName”: “”,
“Attributes”: null,
“BalancerAttributes”: null,
“Type”: 0,
“Metadata”: null
}. Err: connection error: desc = “transport: Error while dialing dial unix: missing address”
E0905 19:08:14.495223 51922 run.go:74] “command failed” err=“failed to run Kubelet: unable to determine runtime API version: rpc error: code = Unavailable desc = connection error: desc = “transport: Error while dialing dial unix: missing address””