.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
):
version
: prints the version information for the actual connected Kubernetes clusterinstall
: install the CRDs for the given solution into the clusteruninstall
: uninstall the CRDs for the given solution from the clustergenerator
: entry command for generator commands (i.e. has subcommands), all commands output their result to the stdout or the given output pathcert
: generate a CA & server certificate for usage with webhookscrd
: generate the CRDsdocker
: generate the dockerfileinstaller
: generate the installer files (i.e. kustomization yaml) for the operatoroperator
: generate the deployment for the operatorrbac
: generate the needed rbac roles / role bindings for the operator
webhook
: entry command for webhook related operationsinstall
: generate the server certificate and install the service / webhook registrationregister
: register the currently implemented webhooks to the currently selected cluster
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 │
└─────────────┴─────────────┘