chore(kubectl): start pod to trigger autoscaling-up event

This commit is contained in:
Michele Cereda
2024-09-28 19:22:49 +02:00
parent b7652fcc79
commit 3be0deaf67

View File

@@ -54,3 +54,9 @@ EOF
# Check persistent volumes' usage
# Need to connect to the pod mounting it
kubectl -n 'gitea' exec 'gitea-766fd5fb64-2qlqb' -c 'gitea' -- df -h '/data'
# Create a fictious job large enough to trigger a scale up in clusters with cluster-autoscaler
kubectl run --rm -i --restart 'Never' 'resource-grabber' --image='alpine' \
--overrides '{"spec":{"containers":[{"name":"alpine","image":"alpine","resources":{"requests":{"cpu":"1700m"}}}]}}' \
-- \
sleep '3s'