Skip to content

Kubectl plugin for crane, including recommendation and cost estimate.

License

Notifications You must be signed in to change notification settings

gocrane/kubectl-crane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubectl-crane

Go Report Card

Kubectl plugin for crane, including recommendation and cost estimate.

Installation

You can install kubectl-crane plugin in any of the following ways:

  • One-click installation.
  • Install using Krew.
  • Build from source code.

One-click installation

Downloaded a tar file from released packages and extract kubectl-crane from it, then put the binary under your path.

For Linux

export release=v0.2.0
export arch=x86_64
curl -L -o kubectl-crane.tar.gz https://github.com/gocrane/kubectl-crane/releases/download/${release}/kubectl-crane_${release}_Linux_${arch}.tar.gz
tar -xvf kubectl-crane.tar.gz 
cp kubectl-crane_${release}_Linux_${arch}/kubectl-crane /usr/local/bin/

For Mac

export release=v0.2.0
export arch=arm64
curl -L -o kubectl-crane.tar.gz https://github.com/gocrane/kubectl-crane/releases/download/${release}/kubectl-crane_${release}_Darwin_${arch}.tar.gz
tar -xvf kubectl-crane.tar.gz 
cp kubectl-crane_${release}_Darwin_${arch}/kubectl-crane /usr/local/bin/

Install using Krew

Krew is the plugin manager for kubectl command-line tool.

Install and setup Krew on your machine.

Then install kubectl-crane plug-in:

kubectl krew install crane

Build from source code

git clone https://github.com/gocrane/kubectl-crane.git
cd kubectl-crane
export CGO_ENABLED=0
go mod vendor
go build -o kubectl-crane ./cmd/

Next, move the kubectl-crane executable file in the project root directory to the PATH path.

Usage

$ kubectl crane -h
Kubectl plugin for crane, including recommendation and cost estimate.

Usage:
  kubectl crane [command]

Available Commands:
  completion         Generate the autocompletion script for the specified shell
  help               Help about any command
  recommend          view or adopt recommend result
  recommendationrule manage recommendation rules
  version            Print kubectl-crane version
  view-recommend     View a source which recommends related.

About

Kubectl plugin for crane, including recommendation and cost estimate.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages