kubernetes.pod package¶
Submodules¶
kubernetes.pod.exceptions module¶
- exception kubernetes.pod.exceptions.Fatal(message, output_file='/dev/termination-log')¶
Bases:
RuntimeErrorException that identifies the root cause of failure for a Kubernetes Pod.
Usage of this class guarantees that not only the exception message goes to the Docker container log, but also to the respective termination log, making it easier to identify the reason for the Pod failure.
- Parameters:
message (str)
output_file (str)
- Return type:
None
- __init__(message, output_file='/dev/termination-log')¶
Configure a instance of Fatal exception class.
If
output_fileis different from the default, make sure to also properly configure the Kubernetes Pod in order to use this alternative file path.- Parameters:
message (str)
output_file (str)
- Return type:
None
- __module__ = 'kubernetes.pod.exceptions'¶
- __weakref__¶
list of weak references to the object