CKA– MOCK EXAM SERIES: Pods are getting stuck in Creating state with this "Warning Failed 42s (x70 over 15m) kubelet error making pod data directories: mkdir /var/lib/kubelet/pods: no such file or directory" error

when i am doing mock exams from these labs “CERTIFIED KUBERNETES ADMINISTRATOR – MOCK EXAM SERIES”, pods are getting stuck in “ContainerCreating” state with the below errors on some contexts and not able to concentrate on real queations. May i know why are we getting the errors?

student-node ~ ➜ k get pods
NAME READY STATUS RESTARTS AGE
check-time-cka03-trb 1/1 Running 0 24m
db-deployment-cka05-trb-d6c66f466-txrsr 0/1 ContainerCreating 0 21m
pod-cka24-trb 0/1 ContainerCreating 0 24m
red-probe-cka12-trb 1/1 Running 0 26m

student-node ~ ➜ k describe pod/db-deployment-cka05-trb-d6c66f466-txrsr
Name: db-deployment-cka05-trb-d6c66f466-txrsr
Namespace: default
Priority: 0
Node: cluster1-node01/192.27.144.16
Start Time: Thu, 08 Jun 2023 14:20:58 +0000
Labels: app=db-app-cka05-trb
pod-template-hash=d6c66f466
Annotations:
Status: Pending
IP:
IPs:
Controlled By: ReplicaSet/db-deployment-cka05-trb-d6c66f466
Containers:
db:
Container ID:
Image: keinos/sqlite3
Image ID:
Port:
Host Port:
Command:
/bin/sh
-c
sleep 1000
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment:
DB_ROOT_PASSWORD: <set to the key ‘password’ in secret ‘db-root-pass-cka05-trb’> Optional: false
DB_DATABASE: <set to the key ‘db’ in secret ‘db-cka05-trb’> Optional: false
DB_USER: <set to the key ‘db-user’ in secret ‘db-user-cka05-trb’> Optional: false
DB_PASSWORD: <set to the key ‘db-password’ in secret ‘db-user-pass-cka05-trb’> Optional: false
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-h5mlw (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
kube-api-access-h5mlw:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional:
DownwardAPI: true
QoS Class: BestEffort
Node-Selectors:
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message


Normal Scheduled 22m default-scheduler Successfully assigned default/db-deployment-cka05-trb-d6c66f466-txrsr to cluster1-node01
Warning FailedMount 19m (x9 over 22m) kubelet MountVolume.SetUp failed for volume “kube-api-access-h5mlw” : mkdir /var/lib/kubelet/pods: no such file or directory
Warning Failed 2m5s (x93 over 22m) kubelet error making pod data directories: mkdir /var/lib/kubelet/pods: no such file or directory

Hi @konathamhari,

On which labs exactly did you have the error ?

observed this same issue on multiple labs. particularly the above error is seen in “MOCK-EXAM 4” .

1 Like

I have seen this issue in all the labs that I have started including Mock Exam 1,2 and 3.

Hi

We’re awarded about this issue and the labs team working on it. We’ll come back to you ASAP?

Regard

Still seeing in 2025Any solution to below error?

Warning FailedMount 17s (x7 over 49s) kubelet MountVolume.SetUp failed for volume “kube-api-access-9hwgp” : mkdir /var/lib/kubelet/pods: no such file or directory
Warning Failed 11s (x4 over 49s) kubelet error making pod data directories: mkdir /var/lib/kubelet/pods: no such file or directory