All Projects → jordanwilson230 → Kubectl Plugins

jordanwilson230 / Kubectl Plugins

Licence: apache-2.0
A Collection of Plugins for kubectl Integration (exec as any user, context switching, etc).

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Kubectl Plugins

Snowflake
Graphical SFTP client and terminal emulator with helpful utilities
Stars: ✭ 1,676 (+392.94%)
Mutual labels:  devops, deployment, ssh
Kube Aliases
Kubernetes Aliases and Bash Functions
Stars: ✭ 40 (-88.24%)
Mutual labels:  namespace, devops, kubectl
Helloworld Msa
Main repository with documentation and support files
Stars: ✭ 218 (-35.88%)
Mutual labels:  devops, deployment, ci-cd
Deployr
A simple golang application to automate the deployment of software releases.
Stars: ✭ 282 (-17.06%)
Mutual labels:  devops, deployment, ssh
Cloud Ops Sandbox
Cloud Operations Sandbox is an open source tool that helps practitioners to learn Service Reliability Engineering practices from Google and apply them on their cloud services using Cloud Operations suite of tools.
Stars: ✭ 191 (-43.82%)
Mutual labels:  google-cloud, devops
Marmot
Marmot workflow execution engine
Stars: ✭ 174 (-48.82%)
Mutual labels:  google-cloud, devops
kubeswitch
visually select kubernetes context/namespace from tree
Stars: ✭ 15 (-95.59%)
Mutual labels:  namespace, kubectl
build-plugin-template
Template repository to create new Netlify Build plugins.
Stars: ✭ 26 (-92.35%)
Mutual labels:  deployment, plugins
kahoy
Simple Kubernetes raw manifests deployment tool
Stars: ✭ 33 (-90.29%)
Mutual labels:  deployment, kubectl
kuzgun
simple, ssh based deployment tool
Stars: ✭ 16 (-95.29%)
Mutual labels:  ssh, deployment
Tomo
A friendly CLI for deploying Rails apps ✨
Stars: ✭ 260 (-23.53%)
Mutual labels:  deployment, ssh
Iap Desktop
IAP Desktop is a Windows application that provides zero-trust Remote Desktop and SSH access to Linux and Windows VMs on Google Cloud.
Stars: ✭ 96 (-71.76%)
Mutual labels:  google-cloud, ssh
Build
Netlify Build runs the build command, Build Plugins and bundles Netlify Functions.
Stars: ✭ 135 (-60.29%)
Mutual labels:  plugins, deployment
Kubedog
Library to watch and follow kubernetes resources in CI/CD deploy pipelines
Stars: ✭ 326 (-4.12%)
Mutual labels:  devops, kubectl
Pi Timolo
Raspberry PI-TIMOLO ( PI-TImelapse, MOtion, LOwLight ) uses RPI picamera and OpenCV for Remote Headless Security Monitoring using Motion Tracking, Rclone Auto Sync files with remote storage services. Auto Twilight Transitions and Low Light Camera Settings. Panoramic images using PanTiltHat and More. This project is featured on GitHub Awesome software.
Stars: ✭ 441 (+29.71%)
Mutual labels:  plugins, ssh
kubectl-ssh-plugin-eks
This is plugin to SSH into Worker Nodes running on AWS
Stars: ✭ 18 (-94.71%)
Mutual labels:  plugins, kubectl
forge
🔥 Incubator of pet projects, tools, pet projects. Edge cases and failovers included.
Stars: ✭ 33 (-90.29%)
Mutual labels:  deployment, plugins
Ssh Deploy
GitHub Action for deploying code via rsync over ssh
Stars: ✭ 272 (-20%)
Mutual labels:  deployment, ssh
Socker
A Go library to simplify the use of SSH for devops
Stars: ✭ 242 (-28.82%)
Mutual labels:  devops, ssh
Provision
Digital Rebar Provision is a simple and powerful Golang executable that provides a complete API-driven DHCP/PXE/TFTP provisioning system.
Stars: ✭ 252 (-25.88%)
Mutual labels:  devops, deployment

kubectl-plugins

CI Status

A collection of plugins for kubectl integration (for Kubectl versions >= 1.12.0)

A portion of these plugins are available on krew as well.

Note
  • These plugins are for kubectl versions at or above 1.12.0 only. Check your version via kubectl version
  • For versions below 1.12.0, use the 1.11.0 branch.
  • To upgrade your kubectl version via homebrew: brew upgrade kubectl, or via gcloud: gcloud components update
  • The kubectl-ip plugin requires jq ( brew/apt/yum install jq )
  • All coding was written to maintain compatibility across both BSD and GNU.
  • Requires Bash.

Install on Linux/Mac

git clone https://github.com/jordanwilson230/kubectl-plugins.git
cd kubectl-plugins
./install-plugins.sh
source ~/.bash_profile

To Uninstall

rm -rf ~/.kube/plugins/jordanwilson230
ex '+g/jordanwilson230/d' -cwq ~/.bash_profile

Remove the image plugin:

ex '+g/IMG_REGISTRY=/d' -cwq ~/.bash_profile

Remove the prompt plugin:

ex '+g/function kubectl()/d' -cwq ~/.bash_profile
ex '+g/KUBECTL_\(.*\)_PROMPT/d' -cwq ~/.bash_profile

kubectl ssh

kapssh

  • Like kubectl exec, but offers a --user flag to exec as root (or any other user)
  • 'ssh' is a misnomer (it works by mounting a docker socket as a volume), but it's easier to work with as a command.
  • You must be in the same namespace as the target pod or you can use -n namespace option to specify the namespace
  • Kudos to mikelorant for thinking of the docker socket! :)

Usage: kubectl ssh [OPTIONS] <pod name> [-- <commands...>]

Option Required Description Example
-h N Show usage kubectl ssh -h
-d N Enable debug mode. Print a trace of each commands kubectl ssh -d kafka-0
-n N The namespace scope for this CLI request kubectl ssh -n infra kafka-0
-u N User to exec as. Defaults to root kubectl ssh -u kafka kafka-0
-c N Specify container within pod kubectl ssh -c burrow-metrics kafka-0
-- N Pass an optional command. Defaults to /bin/sh kubectl ssh kafka -- ls /etc/burrow

kubectl switch

switch

  • View current namespace: kubectl switch
  • Switch namespace: kubectl switch preprod
  • Switch cluster: kubectl switch cluster staging (accepts fuzzy on the cluster name)
  • List and select from all available clusters: kubeclt switch cluster -l
Option Required Description Example
-l N List available clusters and prompts for selection. Can only be used when cluster is passed. kubNctl switch cluster -l
-h N Show usage kubectl switch -h

kubectl prompt

prompt

  • Displays a warning prompt when issuing commands in a flagged cluster or namespace
  • Commands that trigger the prompt include create, scale, delete, apply, etc.,
  • Flag a namespace: kubectl prompt add -n production
  • Flag a cluster: kubectl prompt add -c my-cluster
  • List flagged environments: kubectl prompt list
  • Clear flagged environments: kubectl prompt remove
  • View description: kubectl prompt

kubectl image

image

  • Search for Docker images
  • If you have a Google Container Registry, run kubectl image -c to set it as the default for future searches.
  • If not configured with -c, searches will use Docker Hub by default.
  • Adding -p will search Docker Hub, regardless of any default.
  • Sorts Docker Hub images by number of stars.
  • Sorts GCR images by upload date.

Example: kubectl image kafka

kubectl ip

kap_ip

  • Outputs the node name, node IP, and Pod IP for a given resource. Search is performed against common labels (defaults to app, name, component)

Example: kubectl ip cassandra

kubectl uptime

kap_uptime

  • Displays total uptime for pods/statefulsets in the current namespace.

Example: kubectl uptime

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].