.NET tool to help managing your KubeOps project. It allows you to generate the needed files for your operator as well as managing resources in your Kubernetes cluster.
To install the CLI into your solution / project, first create a new tool manifest:
dotnet new tool-manifest
Then install the CLI:
dotnet tool install KubeOps.Cli
This allows you to use the CLI with dotnet kubeops
.
Here is a brief overview over the available commands
(for all options and descriptions, use -h
or --help
):
api-version
,av
: Prints the version information for the actual connected Kubernetes clusterinstall
,i
: Install the CRDs for the given solution into the clusteruninstall
,u
: Uninstall the CRDs for the given solution from the clustergenerate
,gen
,g
: Generates elements related to the operatoroperator
,op
: Generate the all files necessary for deployment for the operator, including any webhooks
When running dotnet kubeops api-version
, your output may look like this:
> dotnet kubeops api-version
Kubernetes API Version
┌─────────────┬─────────────┐
│ Git-Version │ v1.27.2 │
│ Major │ 1 │
│ Minor │ 27 │
│ Platform │ linux/arm64 │
└─────────────┴─────────────┘