All Projects → versus-systems → kubecmd

versus-systems / kubecmd

Licence: MIT license
Connect to your kubernetes' apps and run commands easily

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to kubecmd

frakti
The hypervisor-based container runtime for Kubernetes.
Stars: ✭ 669 (+4081.25%)
Mutual labels:  pod
kubernetes-basico
Demonstração dos componentes do Kubernetes
Stars: ✭ 26 (+62.5%)
Mutual labels:  pod
SSCycleScrollView
轮播终结者,用swift完成,易用集成
Stars: ✭ 39 (+143.75%)
Mutual labels:  pod
podhd
PODHD Preset Tool -- Modify And Convert Line6 POD HD Presets, Setlists And Bundles.
Stars: ✭ 37 (+131.25%)
Mutual labels:  pod
GoogleDriveBrowser
Goole Drive Download Library for iOS
Stars: ✭ 13 (-18.75%)
Mutual labels:  pod
QuickWebKit
A great & strong plugin based WebViewController. 一款基于插件的 WebView 视图控制器,您可以基于它设计您的浏览器插件,然后像积木一样来组装它们。
Stars: ✭ 29 (+81.25%)
Mutual labels:  pod
FFDB
ORM database,is build on top of FMDB
Stars: ✭ 18 (+12.5%)
Mutual labels:  pod
flowtorch
flowTorch - a Python library for analysis and reduced-order modeling of fluid flows
Stars: ✭ 47 (+193.75%)
Mutual labels:  pod
ContextMenuSwift
A better version of iOS 13 Context Menu
Stars: ✭ 162 (+912.5%)
Mutual labels:  pod
CXDatePickerView
一个自定义的日期时间选择器
Stars: ✭ 62 (+287.5%)
Mutual labels:  pod
iOSUtilitiesSource
IOS Utilities Library for Swift
Stars: ✭ 46 (+187.5%)
Mutual labels:  pod
PagedLists
Paginated UITableView and UICollectionViews for iOS.
Stars: ✭ 69 (+331.25%)
Mutual labels:  pod
kubernetes-scheduling-examples
Walk-through guide of advanced scheduling concepts in Kubernetes
Stars: ✭ 38 (+137.5%)
Mutual labels:  pod
websocket-exec
Learning how to exec a pod via WebSocket written in Go.
Stars: ✭ 25 (+56.25%)
Mutual labels:  pod
opssight-connector
OpsSight Connector documentation
Stars: ✭ 15 (-6.25%)
Mutual labels:  pod
AFWebViewController
In-app browser that uses WKWebView
Stars: ✭ 38 (+137.5%)
Mutual labels:  pod
simplenetes
The sns tool is used to manage the full life cycle of your Simplenetes clusters. It integrates with the Simplenetes Podcompiler project podc to compile pods.
Stars: ✭ 731 (+4468.75%)
Mutual labels:  pod
rkt-compose
CLI to run Docker Compose file as pod on rkt with integrated service discovery using Consul - EOL
Stars: ✭ 24 (+50%)
Mutual labels:  pod
IDCardNumber-Validator
An Objective-C & Swift implementation to (check) validate Chinese ID Card No. 身份证号码验证
Stars: ✭ 15 (-6.25%)
Mutual labels:  pod
GQImageVideoViewer
仿微信多图片及视频浏览器,图片和视频原尺寸显示,不会变形,双击图片放大缩小,单击消失,支持多张本地和网络图片以及网络视频混合查看,支持链式调用
Stars: ✭ 57 (+256.25%)
Mutual labels:  pod

kubecmd

Run commands easily on dedicated deployment's pods.

It creates a job based on your deployment, it runs the command on the job's pod, and deletes it after it's done.

But why?

You could run your commands directly on a deployment's pod but have in mind that it's the same pod that is currently running your app, probably processing lots of requests already, any deployment update can terminate the pod in the middle of your script's execution plus you have to figure out the pod's name.

kubecmd makes easier to run any command on your kubernetes apps creating a dedicated job to do it, it won't go away if something like a deployment update happens but until it's done with your command. The job gets destroyed after the command finishes.

Instalation

brew install jq
curl -fsSL https://raw.githubusercontent.com/versus-systems/kubecmd/master/kubecmd > /usr/local/bin/kubecmd
chmod +x /usr/local/bin/kubecmd

Usage

Run any command as: kubecmd -d <deployment-name> -n <namespace> <command>

kubecmd -d my-rails-app rails console          # it opens a rails console on a pod based on my-rails-app deployment on the default namespace
kubecmd -d my-rails-app -n production rails c  # same as above but under the production namespace

If you just want to ssh into it, you can run /bin/sh or /bin/bash.

kubecmd -d my-app -n namespace /bin/sh
kubecmd -d my-app -n namespace /bin/bash

Tested on:

  • GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)
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].