SidecarContainer creation on K8S v1.27

There is question in Kubernetes Lab-2 to create SidecarContainer. However the give Lab environment runs kubernetes v1.27 version does not support SidecarContainers. How to proceed in this case.

This is actually not the case – while there is a feature that went beta in 1.29 that is called a "sidecar container’, this is NOT what people generally mean when they call something a sidecar container. In the way the term has been used in K8s (especially for the CKAD exam), the term “sidecar” is what we’d call a “design pattern” – a practice or technique to accomplish a goal in software. The 1.29 beta feature is also a kind of “sidecar container” in the design pattern sense of the word. This is very confusing, and I think the people in the K8s design team that decided to use the term “sidecar” for this new feature should be hit in the head, smartly, with a rolled up newspaper, for doing something dumb that is going to confuse people, a lot :-).

So you can create secondary containers in a pod that supplement or enhance the main container, which we have called, for years, sidecar containers. You can do it in 1.27. You could do it 1.16 and earlier too. When the new fangled, misnamed 1.29 thingees get added to the exam (I do not believe they have been), we’ll start worrying about those too. But until then, do the lab, and be sure that what you are doing are sidecar containers too.

Thanks for clarification. I was just following the Kubernetes latest document never thought to check if existed before and how.
Good, I will try lab accordingly to created the “Sidecar Container”.