File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
content/zh/docs/tasks/administer-cluster Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -423,11 +423,15 @@ as the kubectl CLI does to locate and authenticate to the API server. See this [
423
423
-->
424
424
#### .Net 客户端 {#dotnet-client}
425
425
426
- 要使用 [ .Net 客户端] ( https://github.com/kubernetes-client/csharp ) ,运行下面的命令:
426
+ 要使用[ .Net 客户端] ( https://github.com/kubernetes-client/csharp ) ,运行下面的命令:
427
427
` dotnet add package KubernetesClient --version 1.6.1 ` 。
428
- 参见 [ .Net 客户端库页面] ( https://github.com/kubernetes-client/csharp ) 了解更多安装选项。
428
+ 参见[ .Net 客户端库页面] ( https://github.com/kubernetes-client/csharp ) 了解更多安装选项。
429
429
关于可支持的版本,参见[ https://github.com/kubernetes-client/csharp/releases ] ( https://github.com/kubernetes-client/csharp/releases ) 。
430
430
431
+ .Net 客户端可以使用与 kubectl CLI 相同的 [ kubeconfig 文件] ( /zh/docs/concepts/configuration/organize-cluster-access-kubeconfig/ )
432
+ 来定位并验证 API 服务器。
433
+ 参见[ 样例] ( https://github.com/kubernetes-client/csharp/blob/master/examples/simple/PodList.cs ) :
434
+
431
435
``` csharp
432
436
using System ;
433
437
using k8s ;
You can’t perform that action at this time.
0 commit comments