This file contains 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
import logging | |
import colorlog | |
# Init logger variable. | |
LOGGER = colorlog.getLogger() | |
def set_logger(verbose): | |
""" | |
Setup logging module | |
:param verbose: Set debug log level. |
This file contains 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
# Remove evicted pods on Kubernetes namespace. | |
~$ kubectl get pods -n kube-system| grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
This file contains 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
~$ http --headers --auth-type=edgegrid \ | |
-a default: POST ':/ccu/v3/delete/url/production' \ | |
objects:[email protected] | |
# `-a default` is the profile name, setup in .edgegrc file. | |
# the file `urls-to-delete-on-akamai.list` contain an array with a list of urls to delete. |