All Projects → esin → kubectlsafe

esin / kubectlsafe

Licence: other
Safe operations in kubectl with plugin kubectlsafe

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to kubectlsafe

kubectl-janitor
List Kubernetes objects in a problematic state
Stars: ✭ 48 (+33.33%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
kubectl-gs
kubectl plugin helping with custom resources by Giant Swarm
Stars: ✭ 36 (+0%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
kubectl-secretdata
A kubectl plugin for viewing decoded Secret data with search flags.
Stars: ✭ 37 (+2.78%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
Kubectl Tree
kubectl plugin to browse Kubernetes object hierarchies as a tree 🎄 (star the repo if you are using)
Stars: ✭ 1,962 (+5350%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
kubectl-plugin-ssh-jump
A kubectl plugin to access nodes or remote services using a SSH jump Pod
Stars: ✭ 117 (+225%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
kube-lineage
A CLI tool to display all dependencies or dependents of an object in a Kubernetes cluster.
Stars: ✭ 238 (+561.11%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
kubectl-iexec
Kubectl plugin to interactively exec into a pod
Stars: ✭ 102 (+183.33%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
Devtron
Software Delivery Workflow For Kubernetes
Stars: ✭ 130 (+261.11%)
Mutual labels:  kubectl, kubernetes-deployment
Kubectl Debug
Debug your pod by a new container with every troubleshooting tools pre-installed
Stars: ✭ 2,091 (+5708.33%)
Mutual labels:  kubectl, kubectl-plugins
Blackbelt Aks Hackfest
Microsoft Intelligent Cloud Blackbelt Team :: Hackfest Repo
Stars: ✭ 209 (+480.56%)
Mutual labels:  kubectl, kubernetes-deployment
kubectl-tmux-logs
A kubectl plugin to display container logs within separate tmux panes
Stars: ✭ 19 (-47.22%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-evict-pod
This plugin evicts the given pod and is useful for testing pod disruption budget rules
Stars: ✭ 51 (+41.67%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-passman
kubectl plugin that provides the missing link/glue between common password managers and kubectl
Stars: ✭ 69 (+91.67%)
Mutual labels:  kubectl-plugins, kubectl-plugin
Laravel Docker K8s
Running Laravel project using Docker and Deploying using Kubernetes
Stars: ✭ 127 (+252.78%)
Mutual labels:  kubectl, kubernetes-deployment
Kubectx
Faster way to switch between clusters and namespaces in kubectl
Stars: ✭ 11,922 (+33016.67%)
Mutual labels:  kubectl, kubectl-plugins
Krew
📦 Find and install kubectl plugins
Stars: ✭ 4,354 (+11994.44%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-sql
kubectl-sql is a kubectl plugin that use SQL like language to query the Kubernetes cluster manager
Stars: ✭ 50 (+38.89%)
Mutual labels:  kubectl, kubectl-plugin
kubectl-ctx
Simple kubectl plugin to display/switch contexts
Stars: ✭ 36 (+0%)
Mutual labels:  kubectl, kubectl-plugins
rbac-tool
Rapid7 | insightCloudSec | Kubernetes RBAC Power Toys - Visualize, Analyze, Generate & Query
Stars: ✭ 546 (+1416.67%)
Mutual labels:  kubectl, kubectl-plugin
kubectl-ns
Simple kubectl plugin to display/switch namespaces
Stars: ✭ 20 (-44.44%)
Mutual labels:  kubectl, kubectl-plugins

kubectlsafe

Plugin for kubectl for safe write operations in Kubernetes

Before every write (apply, create, etc...) operation, kubectl will ask you about your choice

Installation

It's simple as 1, 2, 3:

Download kubectl-safe to /usr/local/bin, add eXecutable bit and add to your aliases

sudo wget https://raw.githubusercontent.com/esin/kubectlsafe/master/kubectl-safe -O /usr/local/bin/kubectl-safe
sudo chmod +x /usr/local/bin/kubectl-safe
echo "alias kubectl='kubectl safe'" >> $HOME/.bashrc
. $HOME/.basrc

If you don't have root access, you can do like this:

mkdir $HOME/bin
wget https://raw.githubusercontent.com/esin/kubectlsafe/master/kubectl-safe -O $HOME/bin/kubectl-safe
chmod +x $HOME/bin/kubectl-safe
echo "alias kubectl='kubectl safe'" >> $HOME/.bashrc
. $HOME/.basrc

That's all

Example

andrey@andreypc:~$ kubectl delete pod nginx-549cfdbc34-jdos4
Current context is kube-prod. Show must go on? y #Only after that operation will begin
pod "nginx-549cfdbc34-jdos4" deleted

Contributions

Feel free to ask questions and apply new ideas

Happy kubectling! :)

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].