"""Liveness of the private MinIO service; no credentials in process arguments.""" import sys from urllib.request import urlopen try: with urlopen("http://127.0.0.1:9000/minio/health/live", timeout=2) as response: sys.exit(0 if response.status == 200 else 1) except OSError: sys.exit(1)