Skip to content

Instantly share code, notes, and snippets.

View ryuphi's full-sized avatar
🏠
Working from home

Marcos Corona ryuphi

🏠
Working from home
  • Santiago - Chile
  • 14:50 (UTC -03:00)
View GitHub Profile
@ryuphi
ryuphi / mac-setup-redis.md
Created March 11, 2019 15:30 — forked from paddingme/mac-setup-redis.md
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@ryuphi
ryuphi / delete-evicted-pods-all-namespaces.sh
Created February 24, 2019 21:40 — forked from psxvoid/delete-evicted-pods-all-namespaces.sh
Delete evicted pods from all namespaces (also ImagePullBackOff and ErrImagePull)
#!/bin/sh
# based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d
# delete all evicted pods from all namespaces
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod
# delete all containers in ImagePullBackOff state from all namespaces
kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod
# delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces