CKS mastery journey · Final CIS transfer

Close one unsafe port

A four-minute kubelet hardening task.

CKS-0054 minutes

Task

On node02, locate and disable the insecure read-only port in this complete exercise file, /var/lib/kubelet/config.yaml:

apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
address: 0.0.0.0
port: 10250
readOnlyPort: 10255
authentication:
  anonymous:
    enabled: false
  webhook:
    enabled: true
  x509:
    clientCAFile: /etc/kubernetes/pki/ca.crt
authorization:
  mode: Webhook
clusterDNS:
- 10.96.0.10
clusterDomain: cluster.local
rotateCertificates: true
serverTLSBootstrap: true
staticPodPath: /etc/kubernetes/manifests

Back up first, restart kubelet, prove TCP 10255 is not listening, rerun only CIS check 4.2.4 on the node, and verify node02 is Ready from the original host.