@@ -41,49 +41,49 @@ class KubernetesDecorator(StepDecorator):
41
41
42
42
Parameters
43
43
----------
44
- cpu : int, default: 1
44
+ cpu : int, default 1
45
45
Number of CPUs required for this step. If `@resources` is
46
46
also present, the maximum value from all decorators is used.
47
- memory : int, default: 4096
47
+ memory : int, default 4096
48
48
Memory size (in MB) required for this step. If
49
49
`@resources` is also present, the maximum value from all decorators is
50
50
used.
51
- disk : int, default: 10240
51
+ disk : int, default 10240
52
52
Disk size (in MB) required for this step. If
53
53
`@resources` is also present, the maximum value from all decorators is
54
54
used.
55
- image : str, optional, default: None
55
+ image : str, optional, default None
56
56
Docker image to use when launching on Kubernetes. If not specified, and
57
57
METAFLOW_KUBERNETES_CONTAINER_IMAGE is specified, that image is used. If
58
58
not, a default Docker image mapping to the current version of Python is used.
59
- image_pull_policy: str, default: KUBERNETES_IMAGE_PULL_POLICY
59
+ image_pull_policy: str, default KUBERNETES_IMAGE_PULL_POLICY
60
60
If given, the imagePullPolicy to be applied to the Docker image of the step.
61
- service_account : str, default: METAFLOW_KUBERNETES_SERVICE_ACCOUNT
61
+ service_account : str, default METAFLOW_KUBERNETES_SERVICE_ACCOUNT
62
62
Kubernetes service account to use when launching pod in Kubernetes.
63
63
secrets : List[str], optional, default None
64
64
Kubernetes secrets to use when launching pod in Kubernetes. These
65
65
secrets are in addition to the ones defined in `METAFLOW_KUBERNETES_SECRETS`
66
66
in Metaflow configuration.
67
- namespace : str, default: METAFLOW_KUBERNETES_NAMESPACE
67
+ namespace : str, default METAFLOW_KUBERNETES_NAMESPACE
68
68
Kubernetes namespace to use when launching pod in Kubernetes.
69
- gpu: int, optional
69
+ gpu : int, optional
70
70
Number of GPUs required for this step. A value of zero implies that
71
71
the scheduled node should not have GPUs.
72
- gpu_vendor: str, default: KUBERNETES_GPU_VENDOR
72
+ gpu_vendor : str, default KUBERNETES_GPU_VENDOR
73
73
The vendor of the GPUs to be used for this step.
74
- tolerations : List[str], default: METAFLOW_KUBERNETES_TOLERATIONS
74
+ tolerations : List[str], default METAFLOW_KUBERNETES_TOLERATIONS
75
75
Kubernetes tolerations to use when launching pod in Kubernetes.
76
- use_tmpfs: bool, default: False
76
+ use_tmpfs : bool, default False
77
77
This enables an explicit tmpfs mount for this step.
78
- tmpfs_tempdir: bool, default: True
78
+ tmpfs_tempdir : bool, default True
79
79
sets METAFLOW_TEMPDIR to tmpfs_path if set for this step.
80
- tmpfs_size: int, optional, default: None
80
+ tmpfs_size : int, optional, default: None
81
81
The value for the size (in MiB) of the tmpfs mount for this step.
82
82
This parameter maps to the `--tmpfs` option in Docker. Defaults to 50% of the
83
83
memory allocated for this step.
84
- tmpfs_path: str, optional, default: /metaflow_temp
84
+ tmpfs_path : str, optional, default /metaflow_temp
85
85
Path to tmpfs mount for this step.
86
- persistent_volume_claims: Dict[str, str], optional, default: None
86
+ persistent_volume_claims : Dict[str, str], optional, default None
87
87
A map (dictionary) of persistent volumes to be mounted to the pod for this step. The map is from persistent
88
88
volumes to the path to which the volume is to be mounted, e.g., `{'pvc-name': '/path/to/mount/on'}`.
89
89
"""
0 commit comments