canopytax / ckube Goto Github PK
View Code? Open in Web Editor NEWA cli to simplify working with kubectl for some common workflows
License: MIT License
A cli to simplify working with kubectl for some common workflows
License: MIT License
Add additional flags and support based on the features in kubectl:
For logs
: tail, since, container (-c)
For exec
: container (-c)
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 ...
).
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 ?
It'd be nice if a license was added, to make it open source. (BSD or MIT?).
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.
./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
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!
Go is primitive, let's go with a man's language
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.