rke2-kubeconfig
A CLI tool to fetch RKE2 kubeconfig from a remote node, rename clusters/contexts/users with custom naming, merge into your local kubeconfig, and optionally test connectivity.
Features
- 🔧 Automatic Fetch: Retrieve RKE2 kubeconfig over SSH.
- 🛠️ Custom Naming: Override cluster, context, and user names.
- 📂 Secure Merge: Merge into any kubeconfig file with unique entries.
- 💾 Backup: Optional automatic backups of existing configs.
- 🚀 Test Connectivity: Run
kubectl get nodesto verify context. - 📋 Interactive CLI: Rich
--help,--version, and verbose modes.
Installation
pip install rke2-kubeconfig
Or install from source:
git clone https://github.com/chris17453/rke2-kubeconfig.git
cd rke2-kubeconfig
pip install .
Usage
rke2-kubeconfig <host>[@<user>] [SSH_KEY] [options]
# Merge using SSH agent with default 'root' user
rke2-kubeconfig 10.0.0.140 --test
# Specify user, key, and custom name with verbose output
rke2-kubeconfig admin@10.0.0.140 ~/.ssh/id_rsa.pem -n prod-node -v
For full list of options:
rke2-kubeconfig --help
Metadata
Release files for rke2-kubeconfig 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rke2_kubeconfig-1.0.0.tar.gz | 4.6 kB | Without provenance | Details for rke2_kubeconfig-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rke2_kubeconfig-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for rke2_kubeconfig-1.0.0-py3-none-any.whl |
Total release size: 11.5 kB
Release files / rke2_kubeconfig-1.0.0.tar.gz
| Download URL | rke2_kubeconfig-1.0.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41b7dd175e2bbac2f17b23ebd50e8ddff8d16e3b285e7599d95ffd82f1500697
|
|
BLAKE2b-256 checksum How to use checksums |
3e83c44137aeaa036c36ecb9b67d8a2472a38f8c90f9026300f5429fd9db772e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / rke2_kubeconfig-1.0.0-py3-none-any.whl
| Download URL | rke2_kubeconfig-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4de487dd0e119e929e6873c449d20a9a7213f88328c012502110cc6cc7953aa
|
|
BLAKE2b-256 checksum How to use checksums |
a7c9a2e1765f7da3f4a77b9cb98a90ae6821074210874e558032df70aac145eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for rke2-kubeconfig 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.