Python library and cli utility to check k8s client configurations
Project description
kubecfg
Python library and cli utility to check k8s client configurations
Show configuration
Test connectivity
Install
pip install kubecfg
Run
kubecfg
Use the library
This example shows how to use the HTTPX to obtain the version of the API server.
import httpx
from kubecfg.config import KubeConfig
k8s_config = KubeConfig()
k8s_config.load_config()
server, cert, client_ca = k8s_config.get_auth_data()
r = httpx.get(f"{server}/version", cert=cert, verify=client_ca)
r.raise_for_status()
print(r.text)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kubecfg-0.0.4.tar.gz
(38.2 kB
view details)
Built Distribution
File details
Details for the file kubecfg-0.0.4.tar.gz
.
File metadata
- Download URL: kubecfg-0.0.4.tar.gz
- Upload date:
- Size: 38.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b82b75d8ba710f34905b88c2f4c07c9d10db425b05b97b7aaf29b877414d3273 |
|
MD5 | 5da0ae3b5b27e0969b0557d42124b594 |
|
BLAKE2b-256 | bd3c29993695cb92018856607bda5b66a59b1fc71ab15518deb9eb0a4a7f4942 |
File details
Details for the file kubecfg-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: kubecfg-0.0.4-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee97137a76fa14ad57093418611540ebba28250eb871c92fad11fecdfd622ea4 |
|
MD5 | 04b86f6d6447c5d13e7c6be8cc2f4269 |
|
BLAKE2b-256 | 5ec4b91be34464b26ede8a3bb6673d47883828aaed93356772b52bb0d6fc50aa |