Let's look at some basic kubectl output options.
Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).
We can start with:
kubectl get no
import looker_sdk | |
import slack | |
from datetime import datetime | |
#load the connection parameters | |
sdk = looker_sdk.init31("/root/Looker_SDK/Looker.ini") | |
queries = sdk.all_running_queries() #load all running queries | |
threshold = 60 * 10 # Threshold for Query termination - currently set for 10mins |
### | |
# There's a newer version available here: | |
# https://github.com/itaysk/kube-imagepuller | |
# All future updates will be made there. | |
# Please also post you questions as issues on that repo instead of commenting here | |
### | |
apiVersion: apps/v1beta2 | |
kind: DaemonSet |