Yes, I read that Kubernetes has its very own version of API, client definitions, and YAML. However, these vary from that of their Docker counterparts. Hence, there is no possibility of using Docker CLI or Docker Compose for defining containers in Kubernetes. In scenarios where the platform needs to be switched, YAML commands and definitions are required to be rewritten from this post. Now i am clear on this which one is better for future point of view.