Skip to content

Instantly share code, notes, and snippets.

ship it

Moody Saada agolomoodysaada

ship it
  • Agolo
  • NY
Block or report user

Report or block agolomoodysaada

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
agolomoodysaada /
Created Nov 4, 2019
How to delete stuck kubernetes namespaces
# run kubectl proxy on a separate terminal
kubectl get ns | grep Terminating | awk '{print $1}' | while read NS
echo $NS
kubectl get ns --export -o json $NS | grep -v '"kubernetes"' > /tmp/$NS.json
curl -H "Content-Type: application/json" -X PUT --data-binary @/tmp/$NS.json$NS/finalize
agolomoodysaada /
Last active Dec 11, 2019
Azure Virtual Machine Scale Set(VMSS) Reset SSH KEY
az vmss extension set \
--vmss-name <vmss-name> \
-g <resource-group> \
-n VMAccessForLinux \
--publisher Microsoft.OSTCExtensions \
--version 1.4 \
--protected-settings "{\"username\":\"deploy_user\", \"ssh_key\":\"$(cat ~/.ssh/\"}"
# Upgrade ALL instances in the scale set with the new key
az vmss update-instances --instance-ids '*'
-n <vmss-name>
You can’t perform that action at this time.