27 กันยายน 2565

Scale all kubernetes deployments and statefulsets in 1 command

To scale all kubernetes deployments and statefulsets in 1 command, just type


kubectl -n {NAME_SPACE} get statefulset,deployment -o name | xargs -I {} kubectl -n  {NAME_SPACE} scale {} --replicas={TOTAL_REPLICA}

16 กันยายน 2565

Remove all GIT local branches in 1 shell script command

We can use this shell script command to remove all GIT local branches

git branch | xargs -I{} git branch -d {}


After running the command above, your GIT local branches will be removed except the current GIT branch.

บทความยอดนิยม (ล่าสุด)

บทความยอดนิยม (All Time)