kubectl bind Plugin
The kubectl bind plugin is the primary command-line interface for interacting with kube-bind services. It provides both interactive web UI access and command-line binding capabilities for connecting to remote service providers.
Installation
Install the plugin using krew:
bash
kubectl krew index add bind https://github.com/kube-bind/krew-index.git
kubectl krew install bind/bind
Build and install from source:
bash
git clone https://github.com/kube-bind/kube-bind.git
cd kube-bind
make build
cp bin/kubectl-bind /usr/local/bin/
Download pre-built binaries from the releases page:
```bash
Download and install for Linux/macOS
OS=$(uname | tr '[:upper:]' '[:lower:]') ARCH=$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/') VERSION=$(curl -s https://api.github.com/repos/kube-bind/kube-bind/releases/latest | grep '"tag_name"' | cut -d'"' -f4) curl -LO https://github.com/kube-bind/kube-bind/releases/download/${VERSION}/kubectl-bind_${VERSION#v}${OS}${ARCH}.tar.gz tar -xzf kubectl-bind_${VERSION#v}${OS}${ARCH}.tar.gz sudo mv bin/kubectl-bind /usr/local/bin/kubectl-bind ```
Basic Usage
The main plugin command is kubectl bind which opens the kube-bind web UI in your browser for interactive service binding.
```bash
Login to a kube-bind server first
kubectl bind login https://my-kube-bind-server.example.com
Open kube-bind UI for current server context
kubectl bind ```
The plugin provides several subcommands including login, templates, collections, and apiservice for different binding workflows.
For complete command reference and examples, see the CLI Reference.
Quick Start
- Install the plugin using Krew or build from source
- Login to your kube-bind server:
kubectl bind login <server-url> - Open the web UI:
kubectl bind - Browse and bind to available services through the interface
For detailed setup instructions, see the Quickstart Guide.