kubectl warp
kubectl (Kubernetes CLI) plugin to syncronize local files to Pod and executing arbitary command.
Use cases
This can be used for example to build and run your local project in Kubernetes while using your prefed editor locally.
Install
MacOS with Brew
brew install ernoaapa/kubectl-plugins/warp
Linux / MacOS without Brew
- Download binary from releases
- Add it to your
PATH
Usage
When the plugin binary is found from PATH
you can just execute it through kubectl
kubectl warp --help
Development
Prerequisites
Build and run locally
go run ./main.go --image alpine -- ls -la
# Syncs your local files to Kubernetes and list the files
Build and install locally
go install .
# Now you can use `kubectl`
kubectl warp --help