QuestionQ52

DevSecOps Pipeline-Operate and Monitor Stage

Katie Holmes works as a DevSecOps engineer at SeCSafe Anti-virus. The organization's DevOps team built a distributed application composed of multiple microservices, and Katie successfully deployed all the microservices onto the Kubernetes nodes. The DevOps team then informed her that the application isn't working. Katie now wants to verify whether the Kubernetes cluster itself is functioning correctly.

Which commands should Katie run, step by step, to confirm that Kubernetes is working?

  • A kube-etcd version kube-etcd cluster-info
  • B kube version kube cluster-info
  • C kubectl version kubectl cluster-info
  • D kubernetes version kubernetes cluster-info
Explanation

kubectl is the official command-line tool for controlling Kubernetes clusters. Running kubectl version displays the client and server version information (confirming connectivity to the API server), and kubectl cluster-info displays addresses of the master/control plane and services, confirming the cluster is up and reachable. The other options reference non-existent commands ('kube-etcd', 'kube', 'kubernetes') that are not part of the standard Kubernetes CLI toolset.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!