Issue with KodeKloud Lab of 100 days of Devops: Day 54: Kubernetes Shared Volumes – Volume Share Datacenter Task Marked Incorrec

Dear KodeKloud Support Team,

I hope you are doing well.

I am writing to report an issue with the “Volume Share Datacenter” lab on the KodeKloud platform. Despite completing the task correctly and verifying the expected outcomes, the lab result was marked as “Data Not Match.”

Lab Details

  • Platform: KodeKloud Engineer
  • Task: Volume Share Datacenter
  • Environment: Kubernetes
  • Status: Failed despite correct implementation

Steps Performed

  1. Created a pod named volume-share-datacenter .
  2. Configured two containers using the fedora:latest image:
  • volume-container-datacenter-1
  • volume-container-datacenter-2
  1. Mounted a shared emptyDir volume named volume-share at:
  • /tmp/official in the first container.
  • /tmp/apps in the second container.
  1. Ensured both containers remained in a running state using sleep commands.
  2. Created a file inside the first container:
echo "Welcome to xFusionCorp Industries" > /tmp/official/official.txt
  1. Verified the shared volume by accessing the file from the second container:
cat /tmp/apps/official.txt

The file was successfully accessible and displayed the correct content.

Pod Configuration Used

apiVersion: v1
kind: Pod
metadata:
  name: volume-share-datacenter
spec:
  containers:
    - name: volume-container-datacenter-1
      image: fedora:latest
      command: ["sleep", "360000"]
      volumeMounts:
        - name: volume-share
          mountPath: /tmp/official

    - name: volume-container-datacenter-2
      image: fedora:latest
      command: ["sleep", "360000"]
      volumeMounts:
        - name: volume-share
          mountPath: /tmp/apps

  volumes:
    - name: volume-share
      emptyDir: {}

Issue Encountered

Although the configuration worked as expected and the shared volume was verified successfully, the lab was marked incorrect with the message:

“Data Not Match.”

This suggests there may be an issue with the automated validation system.

Request

Could you please:

  • Review my submission and verify its correctness?
  • Confirm whether there is an issue with the lab validation?
  • Update the result or provide clarification on any overlooked requirement?

I have attached screenshots for your reference.

Thank you for your support and for maintaining such an excellent learning platform. I look forward to your response.

I am attaching herewith the screenshot for reference.

Best regards,
Pranav


I notice that the test file you created contains the requested text in lower case, while I think it was probably using case, like this:

thor@jump-host ~$ k exec volume-share-xfusion -it -- bash
Defaulted container "volume-container-xfusion-1" out of: volume-container-xfusion-1, volume-container-xfusion-2
root@volume-share-xfusion:/# echo "Welcome to xFusionCorp Industries" > /tmp/media/media.txt
root@volume-share-xfusion:/# cat /tmp/media/media.txt 
Welcome to xFusionCorp Industries

My file names are different due to how the lab is randomized, but you get the idea.