Linux command
cmctl 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Check cert-manager status
cmctl check api
View certificate status
cmctl status certificate [cert-name]
Renew certificate
cmctl renew [cert-name]
Approve certificate request
cmctl approve [request-name]
Deny certificate request
cmctl deny [request-name]
Inspect certificate
cmctl inspect secret [secret-name]
Show version
cmctl version
说明
cmctl is the official command-line tool for interacting with cert-manager, the Kubernetes certificate management controller. It provides commands for checking API readiness, inspecting certificate status, triggering renewals, and approving or denying certificate requests. The tool can also be installed as a kubectl plugin, making it available as kubectl cert-manager. It simplifies common cert-manager operations that would otherwise require manually creating or editing Kubernetes resources with kubectl. cmctl is particularly useful for debugging certificate issues, as the status and inspect commands provide detailed information about certificate chains, expiration dates, and issuance conditions that are not easily visible through standard kubectl output.
参数
- -n, --namespace _ns_
- Kubernetes namespace
- --context _ctx_
- Kubernetes context
- --kubeconfig _file_
- Kubeconfig file path
FAQ
What is the cmctl command used for?
cmctl is the official command-line tool for interacting with cert-manager, the Kubernetes certificate management controller. It provides commands for checking API readiness, inspecting certificate status, triggering renewals, and approving or denying certificate requests. The tool can also be installed as a kubectl plugin, making it available as kubectl cert-manager. It simplifies common cert-manager operations that would otherwise require manually creating or editing Kubernetes resources with kubectl. cmctl is particularly useful for debugging certificate issues, as the status and inspect commands provide detailed information about certificate chains, expiration dates, and issuance conditions that are not easily visible through standard kubectl output.
How do I run a basic cmctl example?
Run `cmctl check api` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -n, --namespace _ns_ do in cmctl?
Kubernetes namespace