Skip to main content

A simple wrapper around Kubernetes kubectl

Project description

kubeconfig is a simple Python module for manipulating Kubernetes kubeconfig files.

from kubeconfig import KubeConfig

conf = KubeConfig()
conf.set_context('new-context', cluster='other-cluster', user='my-user')


pip install kubeconfig

Example usage cases

  • Generating configs for users
  • Tooling that manages switching between multiple clusters or users
  • Cycling credentials out in a config
  • Updating CA cert entries in your config


See the documentation for more details on usage.


kubeconfig is licensed under the BSD 3-Clause License.

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 kubeconfig, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size kubeconfig-1.1.1.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page