Kubectl plugin
kubectl cert-manager
is a kubectl
plugin that
can help you to manage cert-manager resources inside your cluster.
While the kubectl plugin is supported, it is recommended to use cmctl as this enables a better experience via tab auto-completion.
Installation
You need the kubectl-cert-manager.tar.gz
file for the platform you're using, these can be found on our GitHub releases page.
In order to use the kubectl plugin you need its binary to be accessible under the name kubectl-cert_manager
in your $PATH
.
macOS/Linux
Run the following commands to set up the plugin:
OS=$(go env GOOS); ARCH=$(go env GOARCH); curl -sSL -o kubectl-cert-manager.tar.gz https://github.com/cert-manager/cert-manager/releases/download/v1.7.2/kubectl-cert_manager-$OS-$ARCH.tar.gztar xzf kubectl-cert-manager.tar.gzsudo mv kubectl-cert_manager /usr/local/bin
Windows
- Download the latest version.
- Extract the archive.
- Add the
.exe
file extension to the extractedkubectl-cert_manager
. - Copy
kubectl-cert_manager.exe
to a location which is also in yourPATH
.
You can run kubectl cert-manager help
to test the plugin is set up properly:
$ kubectl cert-manager helpkubectl cert-manager is a CLI tool manage and configure cert-manager resources for KubernetesUsage: kubectl cert-manager [command]Available Commands:approve Approve a CertificateRequestcheck Check cert-manager componentsconvert Convert cert-manager config files between different API versionscreate Create cert-manager resourcesdeny Deny a CertificateRequestexperimental Interact with experimental featureshelp Help about any commandinspect Get details on certificate related resourcesrenew Mark a Certificate for manual renewalstatus Get details on current status of cert-manager resourcesversion Print the cert-manager CLI version and the deployed cert-manager versionFlags:-h, --help help for kubectl cert-manager--log-flush-frequency duration Maximum number of seconds between log flushes (default 5s)Use "kubectl cert-manager [command] --help" for more information about a command.
Commands
Please refer to cmctl for command documentation. The plugin
provides the same functionality bar the completion
subcommand. Commands are
invoked with kubectl cert-manager
rather than cmctl
, but function the same
otherwise.