Kubernetes outadated notes with wrong syntaxe

Hello Team,

It is a very horrible experience with your notes portal (https://notes.kodekloud.com/) that I’m experiencing.

For example:

In config maps concept [Configure ConfigMaps in Applications - KodeKloud Notes]

The code shows the env is the child of spec section but however in the labs it is not accepting the shown syntax. the correct syntax is that the env section is the child of containers and it should be aligned in the similar manner to that of containers.name.

Things like this are pissing me off and a lot of time is being wasted in troubleshooting it.

Notes screenshot vs Labs screenshot please find in the attachent.

Can you please correct it. Once you learn something for the first time and it will be hard to unlearn it. Extremely disappointed with these kinds of mismatches. this keeps demotivating me.

Hi @Raviteja-Inuganti

Kubernetes provides multiple ways to set environment variables for containers in a Pod. The method you marked as incorrect uses the env field, which directly sets environment variables in the Pod manifest. This is valid and allows containers or commands to use these variables.

Alternatively, you can reference environment variables from ConfigMaps or Secrets using envFrom or valueFrom, as shown in your other example. For more details, refer to the official Kubernetes documentation and its linked resources