# kubernetes-client/csharp

Officially supported dotnet Kubernetes Client library

Repository: https://github.com/kubernetes-client/csharp
Canonical: https://ross.abutalabs.com/products/csharp
Language: C#
License: Apache-2.0
License Family: permissive
Last push: 2026-08-24T10:05:56+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 84, longevity 100
- inputs: {"age_days": 3400, "days_push": 9, "days_rel": 29, "gap_med": 46.0, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1218, forks 307 (observed 2026-08-28T04:04:01.527862+00:00)

## What it is
The officially supported Kubernetes client library for .NET, published as the KubernetesClient NuGet package. It provides typed access to the Kubernetes API, including kubeconfig and in-cluster authentication, CRUD operations on resources, and watch support.

## Use cases
- manage kubernetes resources from a c# application
- list pods and namespaces in a cluster using dotnet
- create and delete kubernetes objects programmatically
- authenticate to a cluster from inside a pod with a service account
- build a custom kubernetes controller or operator in .net
- load kubeconfig files to connect to a cluster

## When to choose
- you are building .NET applications or tools that need to interact with the Kubernetes API
- you want an officially supported client with typed models for Kubernetes resources
- you need both kubeconfig-based and in-cluster authentication in C#

## When to avoid
- you are not working in the .NET ecosystem
- you only need to run kubectl commands and don't need programmatic API access
- you require an authentication method listed in the project's known issues

## Facets
- artifact type: library
- maturity: active
- function: sdk, http-client, auth
- domain: developer-tools, cloud-computing
- platform: dotnet, cross-platform
- tags: kubernetes, csharp, kubeconfig, in-cluster, nuget, containers, devops

## Member repositories
- kubernetes-client/csharp (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:01.527862+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:17:04.274218+00:00, confidence not recorded.
  - readme: https://github.com/kubernetes-client/csharp (fetched 2026-08-28T04:04:01.527862+00:00, sha 1c2204c2784f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
