在kubernetes集群中维护hashicorp consul的有用实用程序
consul-kube的Python项目详细描述
库贝领事
这是一个实用程序,它对运行在kubernetes中的consul执行一些有用的函数。
要求
- python 3.6
- 一个有效的kube设置
$HOME/.kube/config
安装
您可以使用最新版本的pip从pypi安装此实用程序:
pip install consul-kube
用法
命令行界面接受几个选项和命令。看到他们,快跑
consul-kube -help
:
Usage: consul-kube [OPTIONS] COMMAND [ARGS]...
Options:
-debug / -no-debug Enables or disables verbose output.
-save-certs / -no-save-certs Save a copy of any retrieved certs.
-context TEXT Choose a context from your kubeconfig.
-version Show the version and exit.
-help Show this message and exit.
--help Show this message and exit.
Commands:
rotate Forces the Consul Connect CA to rotate its root certificate.
validate Checks the certificates for every injected pod.
有些命令接受其他选项。要查看特定命令的选项,请运行
consul-kube COMMAND -help
。