Crates.io | k8s-insider |
lib.rs | k8s-insider |
version | 0.4.1 |
source | src |
created_at | 2023-08-17 12:17:11.992598 |
updated_at | 2023-08-23 11:53:32.584879 |
description | A zero-config way to access your kubernetes cluster network |
homepage | https://github.com/truegoric/k8s-insider |
repository | https://github.com/truegoric/k8s-insider |
max_upload_size | |
id | 946941 |
size | 185,533 |
A zero-config way to access you kubernetes cluster network
Originally a workaround that got out of hand, k8s-insider is a one-stop-shop for accessing your development kubernetes cluster networked resources.
The app works by deploying an operator to the cluster and applying CRDs with network and tunnel definitions, which are then reconciled by the operator pods. After networks and tunnels are applied to the cluster and reconciled, the CLI app reads their state and generates and/or applies WireGuard configurations on the user's machine.
Network
and Tunnel
CRDs are namespaced and can be RBACed easily. The traffic is routed through separate router pods and can be shaped with network policies.
kubectl
with configured contextswireguard-tools
for creating local tunnelssystemd-resolved
for DNS patch functionalitykubectl
with configured contextsWireGuard for Windows
for creating local tunnelscargo
(GNU/Linux and Windows)cargo install --locked k8s-insider
k8s-insider install
k8s-insider create network
k8s-insider connect
Some autodetection functionality might not work properly on single-binary kubernetes distributions (k3s, k0s, etc.). Please feel free to create an issue or submit a PR for these.
Copyright (C) 2023 Marcin Jędrasik
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.