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 | |
|---|---|---|---|
| rke2_kubeconfig-1.0.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rke2_kubeconfig-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|