This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List all resources on the current subscription | |
az resource list --query "[].[name, id, location, type, resourceGroup]" -o tsv > resources.txt | |
# Purge container registry and keep the last 3 tags for each repo | |
# Remove the --dry-run to execute the deletion | |
PURGE_CMD="acr purge \ | |
--filter '.*:.*' \ | |
--ago 0d --untagged --keep 3 --dry-run" | |
az acr run \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run busybox | |
kubectl run -i --tty busybox --image=busybox --restart=Never -- sh | |
# Run SSH-client | |
kubectl run -i --tty ssh-client --image=kroniak/ssh-client --restart=Never -- sh | |
# Run busybox with curl included | |
kubectl run -i --tty busybox --image=yauritux/busybox-curl --restart=Never -- sh | |
# Test network connectivy by running netcat |
NewerOlder