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
function check_thresholds(){ | |
FILE=$1 | |
THRESHOLDS=$2 | |
failed=0 | |
if ! [ -z "$THRESHOLDS" ]; then | |
IFS="," | |
for pair in $THRESHOLDS; do | |
echo "checking if $pair ..." | |
echo $pair | grep "<" > /dev/null && use_lt=1 || use_lt=0 |
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 a container with the AWS CLI on a specific node: | |
kubectl run -it debug --image amazon/aws-cli --command bash --overrides='{ "apiVersion": "apps/v1beta1", "spec": { "template": { "spec": { "nodeSelector": { "kubernetes.io/hostname": "<node-name>" } } } } }' | |
# Configure KIAM role: | |
kubectl run -it debug --image amazon/aws-cli --overrides='{"spec": {"template": {"metadata": {"annotations": {"iam.amazonaws.com/role": "my-cool-role"}}}}}' -- bash |