from kubernetes.client.rest import ApiException from kubernetes import client, config import sys config.load_kube_config() pod_name = sys.argv[1] try: api_instance = client.CoreV1Api() api_response = api_instance.read_namespaced_pod_log(name=pod_name, namespace='default', container="zammad-railsserver") print(api_response) except ApiException as e: print(f"Found exception in reading the logs: {e}")