The plugin source code can be found here.
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
kubectl-clusternet can be directly downloaded
from released packages.
Download a tar file matching your OS/Arch, and extract
kubectl-clusternet binary from it.
./kubectl-clusternet to a directory in your executable
Clone this repo and run
git clone https://github.com/clusternet/kubectl-clusternet make bin
./dist/kubectl-clusternet to a directory in your executable
$ 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 exec Execute a command in a container get Display one or many resources help Help about any command label Update the labels on a resource logs Print the logs for a container in a pod scale Set a new size for a Deployment, ReplicaSet or Replication Controller version Print the plugin version information
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.