A development team has deployed a Tanzu Kubernetes cluster and would like to verify the version of Kubernetes that is running.
Which command will show this information?
A development team has deployed a Tanzu Kubernetes cluster and would like to verify the version of Kubernetes that is running.
Which command will show this information?
To verify the version of Kubernetes running, you need to use the command 'kubectl version'. This command outputs the version of both the client and the server. The command 'kubectl get version' is incorrect as 'version' is not a valid resource type in Kubernetes. The other options are also incorrect: 'kubectl describe tkc dev-cluster' displays details about the Tanzu Kubernetes cluster but not the Kubernetes version, 'kubectl explain tkg dev-cluster' is invalid as 'explain' is used to show documentation for a resource, and 'kubectl get vm dev-cluster' is incorrect as 'vm' is not a Kubernetes resource type.
Correct: A Kubernetes doesn't have a resource type "version", so 'kubectl get version' will not work.
I believe this is a typo from ExamTopics. A will not get you the versions either. "kubectl version" will, however, give the result that answers the question.
It is answer A → kubectl describe tkc dev-cluster I tested in Lab enviroment
It's "kubectl version" kubectl version [--client] [flags] Display the Kubernetes version running on the client and server.
This question is fundamentally flawed as no answer is explicitly correct. I believe ExamTopics have an error in the translation of answer "C", that should read "kubectl version", not "kubectl get version" A. kubectl describe tkc dev-cluster - No, this shows us details about the TKC resource, not Kubernetes. Also, this *does not show the versions of the nodes in the TKC!!!* B. kubectl explain tkg dev-cluster - No, "explain" is not the correct syntax C. kubectl get version - Typo? "kubectl version", shows the version of Kubernetes. This seems the most obvious answer from all choices, which are all wrong. D. kubectl get vm dev-cluster - No, this is not the correct syntax, Kubernetes is not about VMs (heck, you can have your nodes on bare metal if you really want). If you sit the exam, watch this question, I'd bet cash money "kubectl version" is one of the answers.
because C is wrong for sure
Correct answer : A In my lab Topology: Control Plane: Replicas: 3 Storage Class: tanzu-k8s-vsan Tkr: Reference: Name: v1.21.6---vmware.1-tkg.1.b3d708a Vm Class: best-effort-large Node Pools: Name: workers Replicas: 3 Storage Class: tanzu-k8s-vsan see detail of mi tkg
Agree on C