# 检查kubernetes版本

* 检查kubernetes master节点版本

使用元集群配置检查指定集群信息，输出指定yaml格式

```
kubectl --kubeconfig meta/admin.kubeconfig.yaml get cluster mycluster-1 -o yaml
```

* 输出kubernetes的apiserver版本

```
kubectl version
```

## 参考

* [What is command to find detailed information about Kubernetes master(s) using kubectl?](https://stackoverflow.com/questions/38230452/what-is-command-to-find-detailed-information-about-kubernetes-masters-using-ku/38230708)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://huataihuang.gitbook.io/cloud-atlas-draft/iaas/kubernetes/startup/check_kubernetes_version.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
