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}
My personal blog about health, hobby, stock & investment, information technology, self improvement, tax and travel.
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}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น