CertGrid CertGrid
Hands-on Lab·Kubernetes and Cloud Native Security Associate

Kubelet API Access and Ports

Every node runs an API that can list Pods, read logs and exec into containers - and it is not the apiserver. This guide reads the kubelet's authentication and authorization settings, then calls it from outside with no credential.

Cluster Component Security Guide 12 of 42 Intermediate

Written against the versions above. kubeadm's kubelet defaults for v1.36, in `/var/lib/kubelet/config.yaml`. `readOnlyPort` defaults to 0 and kubeadm does not set it, which is why port 10255 is not listening here.

The cka5001 cluster: one control plane and 3 schedulable workers, on Cilium.
Server NameIP AddressOSRolesCPURAMHDD
CKA5001192.168.0.41Ubuntu 26.04 LTSControl Plane Node (tainted NoSchedule)2 Core4 GB50 GB
CKA5001-NODE01192.168.0.42Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA5001-NODE02192.168.0.43Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA5001-NODE03192.168.0.44Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. Its authentication and authorization, which are its own

  2. What is listening, and on which interface

  3. Calling it with nothing

Official sources