Operations
Kubernetes Batch Operation Commands
· β˜• 1 min read
1. Delete Pods in the Evicted State in Bulk 1 kubectl get pods --all-namespaces -o wide | grep Evicted | awk '{print $1,$2}' | xargs -L1 kubectl delete pod -n 2. Delete Pods in a Given State in a Given Namespace in Bulk Using field-selectors, you can delete Pods in a given state in a given namespace.

Affinity in the Kubernetes Scheduler
· β˜• 2 min read
1. The Scheduler in Kubernetes kube-scheduler is the component in Kubernetes that decides which Node a Pending Pod runs on; it is called the scheduler. Kubernetes ships with a large number of built-in scheduling policies and also provides some advanced scheduling policies (nodeAffinity, podAffinity, and so on) for users, which

When We're on Ticket Duty, What Are We On Duty For?
· β˜• 4 min read
1. When We’re on Ticket Duty, What Are We On Duty For? Most people have probably only ever filed a ticket, never worked one. And people who have worked tickets generally don’t file them lightly. A ticket is a service bundled free with the product a customer paid for, dedicated to solving every kind of usage problem.

How to Configure an Efficient Kubernetes Command-Line Terminal
· β˜• 2 min read
Sharpening the axe never delays the woodcutting. No matter when, the time you spend on your toolchain is always worth it. 1. Autocompletion - kubectl OS X install command: 1 brew install bash-complete@2 It is not just for kubectl β€” it provides completion prompts for other command lines too.

Using Homebrew
· β˜• 2 min read
Homebrew is the package manager for OS X, similar to yum on CentOS or apt-get on Ubuntu. From the OS X command line you can install applications with the brew and brew cask commands. 1. Install brew cask 1 brew install brew-cask-completion 2. The Difference Between brew and brew cask The difference between brew and brew cask lies in the type of application they favor.