Machine resources Unavailable

Checks for various resource constraints preventing kubectl from running.

  1. 1

    Checks for disk utilization and returns an error if it crossed a given threshold.

    import shutil u = shutil.disk_usage("/") utilization = 100 * u.used / u.total if utilization > threshold: context.log("ERROR", "Disk usage too high")
    copied
    1