Giter Site home page Giter Site logo

devopshivehq / kubech Goto Github PK

View Code? Open in Web Editor NEW
112.0 112.0 12.0 26 KB

Set kubectl context/namespace per shell/terminal to manage multi Kubernetes clusters at the same time (it's parallel kubectx/kubens)

License: Apache License 2.0

Shell 100.00%
bash k8s kubectl kubernetes shell

kubech's People

Contributors

aabouzaid avatar danielricart avatar imbstack avatar noah004b avatar renovate[bot] avatar samehabdelfatah-rldatix avatar shopeonarope 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

kubech's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
  • actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
  • luizm/action-sh-checker v0.3.0@7f44869033b40ee4ffe7dc76c87a1bc66e3d025a

  • Check this box to trigger a request for Renovate to run again on this repository

Unable to switch context because of directory not found error.

Firstly, Thanks for your effort to give the utility to mange multi-cluster at same time.
When I executed the change context command, the below error occurs.

aliver@dev-server:~$ kubechc arn:aws:eks:us-east-1:xxxxxx:cluster/MyCluster
touch: cannot touch '/home/aliver/.kube/config.dest.d/arn:aws:eks:us-east-1:xxxxxx:cluster/MyCluster-default': No such file or directory
chmod: cannot access '/home/aliver/.kube/config.dest.d/arn:aws:eks:us-east-1:xxxxxx:cluster/MyCluster-default': No such file or directory
-bash: /home/aliver/.kube/config.dest.d/arn:aws:eks:us-east-1:xxxxxx:cluster/MyCluster-default: No such file or directory

Seem it should mkdir -p xxx firstly to touch the new configuration.

Failed to switch context when using separate kubeconfig files

I am using the $KUBECONFIG environment variables to provide path for kubeconfig files (kubeconfig file per cluster)

example:

I have 3 different kubeconfig files: sandbox, staging and production

it seems running kubechc is able to list the context, but then it fails to switch.

$ kubechc
sandbox
staging
production

but then trying to switch context

$kubechc production
W0505 17:04:28.166764   49998 loader.go:223] Config not found: /Users/islamshehata/.kube/config
error: cannot locate context production
error: no context exists with the name: "production"

kubectx works fine with that setup.

find: -printf: unknown primary or operator

Firstly, thank you for writing this and making this widely available. This is a boon for managing multiple clusters.

The installation steps as described in the documentation worked just fine.

I can use kubech just fine and kubechc lets we switch the clusters just fine as well. Everytime i switch context in a new terminal i see the below message.

find: -printf: unknown primary or operator
find: -printf: unknown primary or operator

My workstation is Intel Mac OS.

Not sure about the cause of this and if its a me problem. Have you run into this by any chance ?

ZSH _kube_config:3: = not found error

I'm using ZSH while trying to run kubech commands I got an error.

Installation steps:

git clone https://github.com/aabouzaid/kubech ~/.kubech
echo 'source ~/.kubech/kubech' >> ~/.zshrc

I can see kubechc and kubechn commands available, however.

(⎈|eks-develop:monitoring)➜  ~ kubechc
arn:aws:eks:eu-west-2:xxx:cluster/eks-stable
arn:aws:eks:us-east-2:xxx:cluster/prod-eks-qAZZREu2
docker-desktop
eks-develop
kind-ckad
kind-monitoring
rancher-desktop
(⎈|eks-develop:monitoring)➜  ~ kubechn
calico-apiserver
calico-system
default
kube-node-lease
kube-public
kube-system
monitoring
tigera-operator

changes to namespace or cluster .

(⎈|eks-develop:monitoring)➜  ~ kubechc eks-develop
_kube_config:3: = not found
(⎈|eks-develop:monitoring)➜  ~ kubechn kube-system
_kube_config:3: = not found

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.