F8wtuxdhJl4jrP9ZdtBIUnable to run kubectl
Unable to run kubectl
Checks for general contraints and errors preventing kubectl itself from being started.
inputs
outputs
op = _exe(master_ip, "kubectl get nodes")
m = re.match(r'The connection to the server .* was refused - did you specify the right host or port?', op)
if m:
context.log("ERROR", "Found problem")
copied
- 1S10naUChD7Urqaku3Sg5Machine resources Unavailable
1
Checks for various resource constraints preventing kubectl from running.
inputsoutputs1- 1.1Cpxt7BiFk8RmbmJWxzzANo space left on the device
1.1
Checks for disk utilization and returns an error if it crossed a given threshold.
inputsoutputsimport shutil u = shutil.disk_usage("/") utilization = 100 * u.used / u.total if utilization > threshold: context.log("ERROR", "Disk usage too high")copied1.1