Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Useful utilities to maintain HashiCorp Consul in a Kubernetes cluster

Project description


Build status

This is a utility that performs a few useful functions against Consul running in Kubernetes.


  • Python 3.6
  • A working kube setup with a valid $HOME/.kube/config


You can install this utility from PyPI using a recent version of pip:

    pip install consul-kube 


The consul-kube command line interface accepts several options and commands. To see them all, run consul-kube -help:

    Usage: consul-kube [OPTIONS] COMMAND [ARGS]...

      -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.

      rotate    Forces the Consul Connect CA to rotate its root certificate.
      validate  Checks the certificates for every injected pod.

Some of the commands accept additional options. To see the options for a particular command, run consul-kube COMMAND -help.

Validating certificates

Rotating the CA root certificate

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for consul-kube, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size consul_kube-0.1.4-py3-none-any.whl (21.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size consul_kube-0.1.4.tar.gz (22.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page