Community
The Kubernetes client for C# is a community-driven project. It aims to be a reliable and comprehensive client for interacting with Kubernetes clusters.
Get Involved
- Report Issues: If you encounter any bugs or have feature requests, please report them on the GitHub issues page.
- Contribute Code: If you’d like to contribute to the project, please follow the guidelines in the CONTRIBUTING.md file.
- Ask Questions: For general discussions and support, you can use the GitHub Discussions forum.
- Join the Kubernetes Slack: You can reach the maintainers of this project at SIG API Machinery or on the #kubernetes-client channel on the Kubernetes slack.
Code Examples
// Get a list of pods in the default namespace
var pods = await k8sClient.ListNamespacedPodAsync(defaultNamespace);
// Create a deployment in the default namespace
var deployment = new V1Deployment
{
// ... your deployment configuration
};
await k8sClient.CreateNamespacedDeploymentAsync(defaultNamespace, deployment);
// Get the status of a specific service
var service = await k8sClient.ReadNamespacedServiceAsync("my-service", "my-namespace");
# Build the project
dotnet build
# Run the tests
dotnet test
@echo off
echo Building the project...
dotnet build
echo Running the tests...
dotnet test