[~ {production} ]$ oc get pods -A -o wide; oc get nodes;
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
kube-system konnectivity-agent-ddtjd 1/1 Running 0 16m 10.0.1.131 ip-10-0-1-131.ec2.internal <none> <none>
kube-system konnectivity-agent-ghrk6 1/1 Running 0 10m 10.0.1.21 ip-10-0-1-21.ec2.internal <none> <none>
kube-system kube-apiserver-proxy-ip-10-0-1-131.ec2.internal 1/1 Running 0 16m 10.0.1.131 ip-10-0-1-131.ec2.internal <none> <none>
kube-system
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
/* | |
Thanks to https://gist.github.com/timothyarmstrong/10501804 | |
Finding the target in firefox: | |
Developer console (F12) -> object selector -> playlist delete button | |
Right-click -> Copy -> CSS Selector -> paste to document.querySelector() | |
To use: | |
copy | |
Developer console (F12) |
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
#!/usr/bin/python | |
import re | |
def convert_to_bytes(data): | |
(number, unit) = re.search("([0-9]+)([A-Za-z]+)", data.strip()).groups() | |
if unit.lower() == 'bi': | |
return int(number) | |
elif unit.lower() == 'ki': |