Merge pull request #25707 from guzj11/patch-53

Update access-cluster-api.md
This commit is contained in:
Kubernetes Prow Robot 2020-12-26 04:00:27 -08:00 committed by GitHub
commit 573a215a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -423,11 +423,15 @@ as the kubectl CLI does to locate and authenticate to the API server. See this [
-->
#### .Net 客户端 {#dotnet-client}
要使用 [.Net 客户端](https://github.com/kubernetes-client/csharp),运行下面的命令:
要使用[.Net 客户端](https://github.com/kubernetes-client/csharp),运行下面的命令:
`dotnet add package KubernetesClient --version 1.6.1`
参见 [.Net 客户端库页面](https://github.com/kubernetes-client/csharp)了解更多安装选项。
参见[.Net 客户端库页面](https://github.com/kubernetes-client/csharp)了解更多安装选项。
关于可支持的版本,参见[https://github.com/kubernetes-client/csharp/releases](https://github.com/kubernetes-client/csharp/releases)。
.Net 客户端可以使用与 kubectl CLI 相同的 [kubeconfig 文件](/zh/docs/concepts/configuration/organize-cluster-access-kubeconfig/)
来定位并验证 API 服务器。
参见[样例](https://github.com/kubernetes-client/csharp/blob/master/examples/simple/PodList.cs):
```csharp
using System;
using k8s;