Coder Social home page Coder Social logo

canopytax / ckube Goto Github PK

View Code? Open in Web Editor NEW
132.0 9.0 10.0 2.1 MB

A cli to simplify working with kubectl for some common workflows

License: MIT License

Go 100.00%
kubectl cli golang kubernetes logs containers kubernetes-monitoring hightower-approved pod common-workflows

ckube's People

Contributors

devonmoss avatar dwsr avatar voldemortensen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ckube's Issues

Additional flags

Add additional flags and support based on the features in kubectl:

For logs: tail, since, container (-c)
For exec: container (-c)

Support label selectors

It would be nice to support selecting pods via labels as well as pod prefix. For instance, if I want to tail logs on all of my backend pods from different services (i.e. ckube logs -l tier=backend) or change a setting in all of my frontend pods (i.e. ckube exec -l tier=frontend ...).

Can be used with 2 containers on pod ?

Hi,

Hi have two containers , but ckube ask me for choose one container on tail logs :

ckube logs gr-wss-6015 
error running command: kubectl [logs --tail -1 gr-wss-6015-79b4c48fb4-9rbpt]
[gr...9rbpt] - error: a container name must be specified for pod gr-wss-6015-79b4c48fb4-9rbpt, choose one of: [esp gr-wss-6015]
error running command: kubectl [logs --tail -1 gr-wss-6015-79b4c48fb4-6d2ds]
[gr...6d2ds] - error: a container name must be specified for pod gr-wss-6015-79b4c48fb4-6d2ds, choose one of: [esp gr-wss-6015]

ckube works in that cases ?

No LICENSE?

It'd be nice if a license was added, to make it open source. (BSD or MIT?).

panic: No Auth Provider found for name "gcp"

Expected behavior

The ckube nodes, service, deployment, and exec commands should return appropriate info for each command. The logs, ls, top, and help commands are working as expected.

Actual behavior

./ckube nodes

panic: No Auth Provider found for name "gcp"

goroutine 1 [running]:
github.com/canopytax/ckube/util.GetClientset(0xc4200a59c0, 0x1b, 0x0)
	/Users/justind/go/src/github.com/canopytax/ckube/util/k8s.go:101 +0xdb
github.com/canopytax/ckube/cmd.nodeMap(0x10afb90e00)
	/Users/justind/go/src/github.com/canopytax/ckube/cmd/nodes.go:83 +0x64
github.com/canopytax/ckube/cmd.printNodeView()
	/Users/justind/go/src/github.com/canopytax/ckube/cmd/nodes.go:28 +0x7b
github.com/canopytax/ckube/cmd.glob..func5(0x24ca3c0, 0x24f6578, 0x0, 0x0)
	/Users/justind/go/src/github.com/canopytax/ckube/cmd/nodes.go:23 +0x20
github.com/spf13/cobra.(*Command).execute(0x24ca3c0, 0x24f6578, 0x0, 0x0, 0x24ca3c0, 0x24f6578)
	/Users/justind/go/src/github.com/spf13/cobra/command.go:624 +0x23d
github.com/spf13/cobra.(*Command).ExecuteC(0x24ca600, 0x24caa80, 0x24d2d60, 0x1d9a923)
	/Users/justind/go/src/github.com/spf13/cobra/command.go:699 +0x2fe
github.com/spf13/cobra.(*Command).Execute(0x24ca600, 0x0, 0xc420129f48)
	/Users/justind/go/src/github.com/spf13/cobra/command.go:658 +0x2b
github.com/canopytax/ckube/cmd.Execute()
	/Users/justind/go/src/github.com/canopytax/ckube/cmd/root.go:25 +0x31
main.main()
	/Users/justind/go/src/github.com/canopytax/ckube/main.go:6 +0x20

Steps to reproduce the behavior

Run ckube nodes with kubectl configured with a GKE cluster? I'm not really sure but possibly need k8s.io/client-go/plugin/pkg/client/auth/gcp?

Thanks for the awesome tool!

Windows Binaries?

As this is a Go project, would it be possible to get Windows binaries built as well from the CI system? I'm interacting with Kubernetes almost exclusively from PowerShell/Windows and would love to not have to build this myself.

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.