Giter Club home page Giter Club logo

kubectl-crane's Introduction

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.

kubectl-crane's People

Contributors

qmhu avatar mangogoforward avatar zsnmwy avatar mfanjie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.