Git Product home page Git Product logo

kubectl-wls's Introduction

kubectl-wls:

kubectl-wls stands for kubectl Kubectl-Windows-Linux-Shell, it is an interactive shell script and also a kubectl plugin that allows you to access a kubernetes windows or linux nodes shell.

How it works ?

For Linux Nodes:

It works by creating a pod (with a priviledged container) in the node you specified and using nsenter http://man7.org/linux/man-pages/man1/nsenter.1.html for getting a shell into your linux nodes.

For Windows Nodes:

It is required to have OpenSSH on windows, with user/pass credentials. SSH keys are currently not supported but will be added soon.

To Install OpenSSH on your windows nodes, please follow the below: https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse

Since windows images are large in size, kubectl-wls will create a linux image on a linux node and establish an SSH connection to the windows node.

Note: AKS nodes have OpenSSH installed by default.

Installation:

wget https://raw.githubusercontent.com/mohatb/kubectl-wls/master/kubectl-wls

chmod +x ./kubectl-wls

sudo mv ./kubectl-wls /usr/local/bin/kubectl-wls

Usage:

$ kubectl-wls
 
Non-Interactive
$ kubectl-wls NODE
 
You can mount node root volume to pod with -mount
./kubectl-wls -mount
 
Examples:
kubectl-wls
kubectl-wls minikube
kubectl-wls -mount
kubectl-wls -mount node1

kubectl-wls's People

Contributors

mohatb avatar

Forkers

umesh0791

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.