A kubectl
plugin for interacting with Clusternet.
kubectl-clusternet
can be installed using Krew,
please install Krew with this guide first.
Then you can install Clusternet
kubectl plugin with,
$ kubectl krew update
$ kubectl krew install clusternet
# check plugin version
$ kubectl clusternet version
or update existing Clusternet
plugin to latest,
$ kubectl krew update
$ kubectl krew upgrade clusternet
# check plugin version
$ kubectl clusternet version
Alternatively, kubectl-clusternet
can be directly downloaded
from released packages.
Download a tar file matching your OS/Arch, and extract kubectl-clusternet
binary from it.
Then copy ./kubectl-clusternet
to a directory in your executable $PATH
.
Clone this repo and run make bin
$ git clone https://github.com/clusternet/kubectl-clusternet
$ make bin
Then copy ./dist/kubectl-clusternet
to a directory in your executable $PATH
.
$ kubectl clusternet -h
Usage:
clusternet [flags]
clusternet [command]
Available Commands:
annotate Update the annotations on a resource
api-resources Print the supported API resources on the server
apply Apply a configuration to a resource by filename or stdin
create Create a resource from a file or from stdin.
delete Delete resources by filenames, stdin, resources and names, or by resources and label selector
edit Edit a resource on the server
get Display one or many resources
help Help about any command
label Update the labels on a resource
scale Set a new size for a Deployment, ReplicaSet or Replication Controller
version Print the plugin version information