Kubernetes
zenml.integrations.kubernetes
Kubernetes integration for Kubernetes-native orchestration.
The Kubernetes integration sub-module powers an alternative to the local orchestrator. You can enable it by registering the Kubernetes orchestrator with the CLI tool.
Attributes
KUBERNETES = 'kubernetes'
module-attribute
KUBERNETES_ORCHESTRATOR_FLAVOR = 'kubernetes'
module-attribute
KUBERNETES_STEP_OPERATOR_FLAVOR = 'kubernetes'
module-attribute
Classes
Flavor
Class for ZenML Flavors.
Attributes
config_class: Type[StackComponentConfig]
abstractmethod
property
Returns StackComponentConfig
config class.
Returns:
Type | Description |
---|---|
Type[StackComponentConfig]
|
The config class. |
config_schema: Dict[str, Any]
property
The config schema for a flavor.
Returns:
Type | Description |
---|---|
Dict[str, Any]
|
The config schema. |
docs_url: Optional[str]
property
A url to point at docs explaining this flavor.
Returns:
Type | Description |
---|---|
Optional[str]
|
A flavor docs url. |
implementation_class: Type[StackComponent]
abstractmethod
property
Implementation class for this flavor.
Returns:
Type | Description |
---|---|
Type[StackComponent]
|
The implementation class for this flavor. |
logo_url: Optional[str]
property
A url to represent the flavor in the dashboard.
Returns:
Type | Description |
---|---|
Optional[str]
|
The flavor logo. |
name: str
abstractmethod
property
The flavor name.
Returns:
Type | Description |
---|---|
str
|
The flavor name. |
sdk_docs_url: Optional[str]
property
A url to point at SDK docs explaining this flavor.
Returns:
Type | Description |
---|---|
Optional[str]
|
A flavor SDK docs url. |
service_connector_requirements: Optional[ServiceConnectorRequirements]
property
Service connector resource requirements for service connectors.
Specifies resource requirements that are used to filter the available service connector types that are compatible with this flavor.
Returns:
Type | Description |
---|---|
Optional[ServiceConnectorRequirements]
|
Requirements for compatible service connectors, if a service |
Optional[ServiceConnectorRequirements]
|
connector is required for this flavor. |
type: StackComponentType
abstractmethod
property
Functions
from_model(flavor_model: FlavorResponse) -> Flavor
classmethod
Loads a flavor from a model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
flavor_model
|
FlavorResponse
|
The model to load from. |
required |
Raises:
Type | Description |
---|---|
CustomFlavorImportError
|
If the custom flavor can't be imported. |
ImportError
|
If the flavor can't be imported. |
Returns:
Type | Description |
---|---|
Flavor
|
The loaded flavor. |
Source code in src/zenml/stack/flavor.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
|
generate_default_docs_url() -> str
Generate the doc urls for all inbuilt and integration flavors.
Note that this method is not going to be useful for custom flavors, which do not have any docs in the main zenml docs.
Returns:
Type | Description |
---|---|
str
|
The complete url to the zenml documentation |
Source code in src/zenml/stack/flavor.py
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
|
generate_default_sdk_docs_url() -> str
Generate SDK docs url for a flavor.
Returns:
Type | Description |
---|---|
str
|
The complete url to the zenml SDK docs |
Source code in src/zenml/stack/flavor.py
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 |
|
to_model(integration: Optional[str] = None, is_custom: bool = True) -> FlavorRequest
Converts a flavor to a model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
integration
|
Optional[str]
|
The integration to use for the model. |
None
|
is_custom
|
bool
|
Whether the flavor is a custom flavor. |
True
|
Returns:
Type | Description |
---|---|
FlavorRequest
|
The model. |
Source code in src/zenml/stack/flavor.py
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 |
|
Integration
Base class for integration in ZenML.
Functions
activate() -> None
classmethod
Abstract method to activate the integration.
Source code in src/zenml/integrations/integration.py
175 176 177 |
|
check_installation() -> bool
classmethod
Method to check whether the required packages are installed.
Returns:
Type | Description |
---|---|
bool
|
True if all required packages are installed, False otherwise. |
Source code in src/zenml/integrations/integration.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
|
flavors() -> List[Type[Flavor]]
classmethod
Abstract method to declare new stack component flavors.
Returns:
Type | Description |
---|---|
List[Type[Flavor]]
|
A list of new stack component flavors. |
Source code in src/zenml/integrations/integration.py
179 180 181 182 183 184 185 186 |
|
get_requirements(target_os: Optional[str] = None, python_version: Optional[str] = None) -> List[str]
classmethod
Method to get the requirements for the integration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
target_os
|
Optional[str]
|
The target operating system to get the requirements for. |
None
|
python_version
|
Optional[str]
|
The Python version to use for the requirements. |
None
|
Returns:
Type | Description |
---|---|
List[str]
|
A list of requirements. |
Source code in src/zenml/integrations/integration.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
|
get_uninstall_requirements(target_os: Optional[str] = None) -> List[str]
classmethod
Method to get the uninstall requirements for the integration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
target_os
|
Optional[str]
|
The target operating system to get the requirements for. |
None
|
Returns:
Type | Description |
---|---|
List[str]
|
A list of requirements. |
Source code in src/zenml/integrations/integration.py
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
|
plugin_flavors() -> List[Type[BasePluginFlavor]]
classmethod
Abstract method to declare new plugin flavors.
Returns:
Type | Description |
---|---|
List[Type[BasePluginFlavor]]
|
A list of new plugin flavors. |
Source code in src/zenml/integrations/integration.py
188 189 190 191 192 193 194 195 |
|
KubernetesIntegration
Bases: Integration
Definition of Kubernetes integration for ZenML.
Functions
flavors() -> List[Type[Flavor]]
classmethod
Declare the stack component flavors for the Kubernetes integration.
Returns:
Type | Description |
---|---|
List[Type[Flavor]]
|
List of new stack component flavors. |
Source code in src/zenml/integrations/kubernetes/__init__.py
38 39 40 41 42 43 44 45 46 47 48 49 |
|
Modules
flavors
Kubernetes integration flavors.
Classes
KubernetesOrchestratorConfig(warn_about_plain_text_secrets: bool = False, **kwargs: Any)
Bases: BaseOrchestratorConfig
, KubernetesOrchestratorSettings
Configuration for the Kubernetes orchestrator.
Attributes:
Name | Type | Description |
---|---|---|
incluster |
bool
|
If |
kubernetes_context |
Optional[str]
|
Name of a Kubernetes context to run pipelines in. If the stack component is linked to a Kubernetes service connector, this field is ignored. Otherwise, it is mandatory. |
kubernetes_namespace |
str
|
Name of the Kubernetes namespace to be used.
If not provided, |
local |
bool
|
If |
skip_local_validations |
bool
|
If |
parallel_step_startup_waiting_period |
Optional[float]
|
How long to wait in between starting parallel steps. This can be used to distribute server load when running pipelines with a huge amount of parallel steps. |
pass_zenml_token_as_secret |
bool
|
If |
Source code in src/zenml/stack/stack_component.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|
is_local: bool
property
Checks if this stack component is running locally.
Returns:
Type | Description |
---|---|
bool
|
True if this config is for a local component, False otherwise. |
is_remote: bool
property
Checks if this stack component is running remotely.
This designation is used to determine if the stack component can be used with a local ZenML database or if it requires a remote ZenML server.
Returns:
Type | Description |
---|---|
bool
|
True if this config is for a remote component, False otherwise. |
is_schedulable: bool
property
Whether the orchestrator is schedulable or not.
Returns:
Type | Description |
---|---|
bool
|
Whether the orchestrator is schedulable or not. |
is_synchronous: bool
property
Whether the orchestrator runs synchronous or not.
Returns:
Type | Description |
---|---|
bool
|
Whether the orchestrator runs synchronous or not. |
supports_client_side_caching: bool
property
Whether the orchestrator supports client side caching.
Returns:
Type | Description |
---|---|
bool
|
Whether the orchestrator supports client side caching. |
KubernetesOrchestratorFlavor
Bases: BaseOrchestratorFlavor
Kubernetes orchestrator flavor.
config_class: Type[KubernetesOrchestratorConfig]
property
Returns KubernetesOrchestratorConfig
config class.
Returns:
Type | Description |
---|---|
Type[KubernetesOrchestratorConfig]
|
The config class. |
docs_url: Optional[str]
property
A url to point at docs explaining this flavor.
Returns:
Type | Description |
---|---|
Optional[str]
|
A flavor docs url. |
implementation_class: Type[KubernetesOrchestrator]
property
Implementation class for this flavor.
Returns:
Type | Description |
---|---|
Type[KubernetesOrchestrator]
|
The implementation class. |
logo_url: str
property
A url to represent the flavor in the dashboard.
Returns:
Type | Description |
---|---|
str
|
The flavor logo. |
name: str
property
Name of the flavor.
Returns:
Type | Description |
---|---|
str
|
The name of the flavor. |
sdk_docs_url: Optional[str]
property
A url to point at SDK docs explaining this flavor.
Returns:
Type | Description |
---|---|
Optional[str]
|
A flavor SDK docs url. |
service_connector_requirements: Optional[ServiceConnectorRequirements]
property
Service connector resource requirements for service connectors.
Specifies resource requirements that are used to filter the available service connector types that are compatible with this flavor.
Returns:
Type | Description |
---|---|
Optional[ServiceConnectorRequirements]
|
Requirements for compatible service connectors, if a service |
Optional[ServiceConnectorRequirements]
|
connector is required for this flavor. |
KubernetesOrchestratorSettings(warn_about_plain_text_secrets: bool = False, **kwargs: Any)
Bases: BaseSettings
Settings for the Kubernetes orchestrator.
Attributes:
Name | Type | Description |
---|---|---|
synchronous |
bool
|
If |
timeout |
int
|
How many seconds to wait for synchronous runs. |
service_account_name |
Optional[str]
|
Name of the service account to use for the orchestrator pod. If not provided, a new service account with "edit" permissions will be created. |
step_pod_service_account_name |
Optional[str]
|
Name of the service account to use for the step pods. If not provided, the default service account will be used. |
privileged |
bool
|
If the container should be run in privileged mode. |
pod_settings |
Optional[KubernetesPodSettings]
|
Pod settings to apply to pods executing the steps. |
orchestrator_pod_settings |
Optional[KubernetesPodSettings]
|
Pod settings to apply to the pod which is launching the actual steps. |
pod_startup_timeout |
int
|
The maximum time to wait for a pending step pod to start (in seconds). |
pod_failure_max_retries |
int
|
The maximum number of times to retry a step pod if the step Kubernetes pod fails to start |
pod_failure_retry_delay |
int
|
The delay in seconds between pod failure retries and pod startup retries (in seconds) |
pod_failure_backoff |
float
|
The backoff factor for pod failure retries and pod startup retries. |
Source code in src/zenml/config/secret_reference_mixin.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
KubernetesStepOperatorConfig(warn_about_plain_text_secrets: bool = False, **kwargs: Any)
Bases: BaseStepOperatorConfig
, KubernetesStepOperatorSettings
Configuration for the Kubernetes step operator.
Attributes:
Name | Type | Description |
---|---|---|
kubernetes_namespace |
str
|
Name of the Kubernetes namespace to be used. |
incluster |
bool
|
If |
kubernetes_context |
Optional[str]
|
Name of a Kubernetes context to run pipelines in. If the stack component is linked to a Kubernetes service connector, this field is ignored. Otherwise, it is mandatory. |
Source code in src/zenml/stack/stack_component.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|
is_local: bool
property
Checks if this stack component is running locally.
Returns:
Type | Description |
---|---|
bool
|
True if this config is for a local component, False otherwise. |
is_remote: bool
property
Checks if this stack component is running remotely.
This designation is used to determine if the stack component can be used with a local ZenML database or if it requires a remote ZenML server.
Returns:
Type | Description |
---|---|
bool
|
True if this config is for a remote component, False otherwise. |
KubernetesStepOperatorFlavor
Bases: BaseStepOperatorFlavor
Kubernetes step operator flavor.
config_class: Type[KubernetesStepOperatorConfig]
property
Returns KubernetesStepOperatorConfig
config class.
Returns:
Type | Description |
---|---|
Type[KubernetesStepOperatorConfig]
|
The config class. |
docs_url: Optional[str]
property
A url to point at docs explaining this flavor.
Returns:
Type | Description |
---|---|
Optional[str]
|
A flavor docs url. |
implementation_class: Type[KubernetesStepOperator]
property
Implementation class for this flavor.
Returns:
Type | Description |
---|---|
Type[KubernetesStepOperator]
|
The implementation class. |
logo_url: str
property
A url to represent the flavor in the dashboard.
Returns:
Type | Description |
---|---|
str
|
The flavor logo. |
name: str
property
Name of the flavor.
Returns:
Type | Description |
---|---|
str
|
The name of the flavor. |
sdk_docs_url: Optional[str]
property
A url to point at SDK docs explaining this flavor.
Returns:
Type | Description |
---|---|
Optional[str]
|
A flavor SDK docs url. |
service_connector_requirements: Optional[ServiceConnectorRequirements]
property
Service connector resource requirements for service connectors.
Specifies resource requirements that are used to filter the available service connector types that are compatible with this flavor.
Returns:
Type | Description |
---|---|
Optional[ServiceConnectorRequirements]
|
Requirements for compatible service connectors, if a service |
Optional[ServiceConnectorRequirements]
|
connector is required for this flavor. |
KubernetesStepOperatorSettings(warn_about_plain_text_secrets: bool = False, **kwargs: Any)
Bases: BaseSettings
Settings for the Kubernetes step operator.
Attributes:
Name | Type | Description |
---|---|---|
pod_settings |
Optional[KubernetesPodSettings]
|
Pod settings to apply to pods executing the steps. |
service_account_name |
Optional[str]
|
Name of the service account to use for the pod. |
privileged |
bool
|
If the container should be run in privileged mode. |
Source code in src/zenml/config/secret_reference_mixin.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
Modules
kubernetes_orchestrator_flavor
Kubernetes orchestrator flavor.
KubernetesOrchestratorConfig(warn_about_plain_text_secrets: bool = False, **kwargs: Any)
Bases: BaseOrchestratorConfig
, KubernetesOrchestratorSettings
Configuration for the Kubernetes orchestrator.
Attributes:
Name | Type | Description |
---|---|---|
incluster |
bool
|
If |
kubernetes_context |
Optional[str]
|
Name of a Kubernetes context to run pipelines in. If the stack component is linked to a Kubernetes service connector, this field is ignored. Otherwise, it is mandatory. |
kubernetes_namespace |
str
|
Name of the Kubernetes namespace to be used.
If not provided, |
local |
bool
|
If |
skip_local_validations |
bool
|
If |
parallel_step_startup_waiting_period |
Optional[float]
|
How long to wait in between starting parallel steps. This can be used to distribute server load when running pipelines with a huge amount of parallel steps. |
pass_zenml_token_as_secret |
bool
|
If |
Source code in src/zenml/stack/stack_component.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|
is_local: bool
property
Checks if this stack component is running locally.
Returns:
Type | Description |
---|---|
bool
|
True if this config is for a local component, False otherwise. |
is_remote: bool
property
Checks if this stack component is running remotely.
This designation is used to determine if the stack component can be used with a local ZenML database or if it requires a remote ZenML server.
Returns:
Type | Description |
---|---|
bool
|
True if this config is for a remote component, False otherwise. |
is_schedulable: bool
property
Whether the orchestrator is schedulable or not.
Returns:
Type | Description |
---|---|
bool
|
Whether the orchestrator is schedulable or not. |
is_synchronous: bool
property
Whether the orchestrator runs synchronous or not.
Returns:
Type | Description |
---|---|
bool
|
Whether the orchestrator runs synchronous or not. |
supports_client_side_caching: bool
property
Whether the orchestrator supports client side caching.
Returns:
Type | Description |
---|---|
bool
|
Whether the orchestrator supports client side caching. |
KubernetesOrchestratorFlavor
Bases: BaseOrchestratorFlavor
Kubernetes orchestrator flavor.
config_class: Type[KubernetesOrchestratorConfig]
property
Returns KubernetesOrchestratorConfig
config class.
Returns:
Type | Description |
---|---|
Type[KubernetesOrchestratorConfig]
|
The config class. |
docs_url: Optional[str]
property
A url to point at docs explaining this flavor.
Returns:
Type | Description |
---|---|
Optional[str]
|
A flavor docs url. |
implementation_class: Type[KubernetesOrchestrator]
property
Implementation class for this flavor.
Returns:
Type | Description |
---|---|
Type[KubernetesOrchestrator]
|
The implementation class. |
logo_url: str
property
A url to represent the flavor in the dashboard.
Returns:
Type | Description |
---|---|
str
|
The flavor logo. |
name: str
property
Name of the flavor.
Returns:
Type | Description |
---|---|
str
|
The name of the flavor. |
sdk_docs_url: Optional[str]
property
A url to point at SDK docs explaining this flavor.
Returns:
Type | Description |
---|---|
Optional[str]
|
A flavor SDK docs url. |
service_connector_requirements: Optional[ServiceConnectorRequirements]
property
Service connector resource requirements for service connectors.
Specifies resource requirements that are used to filter the available service connector types that are compatible with this flavor.
Returns:
Type | Description |
---|---|
Optional[ServiceConnectorRequirements]
|
Requirements for compatible service connectors, if a service |
Optional[ServiceConnectorRequirements]
|
connector is required for this flavor. |
KubernetesOrchestratorSettings(warn_about_plain_text_secrets: bool = False, **kwargs: Any)
Bases: BaseSettings
Settings for the Kubernetes orchestrator.
Attributes:
Name | Type | Description |
---|---|---|
synchronous |
bool
|
If |
timeout |
int
|
How many seconds to wait for synchronous runs. |
service_account_name |
Optional[str]
|
Name of the service account to use for the orchestrator pod. If not provided, a new service account with "edit" permissions will be created. |
step_pod_service_account_name |
Optional[str]
|
Name of the service account to use for the step pods. If not provided, the default service account will be used. |
privileged |
bool
|
If the container should be run in privileged mode. |
pod_settings |
Optional[KubernetesPodSettings]
|
Pod settings to apply to pods executing the steps. |
orchestrator_pod_settings |
Optional[KubernetesPodSettings]
|
Pod settings to apply to the pod which is launching the actual steps. |
pod_startup_timeout |
int
|
The maximum time to wait for a pending step pod to start (in seconds). |
pod_failure_max_retries |
int
|
The maximum number of times to retry a step pod if the step Kubernetes pod fails to start |
pod_failure_retry_delay |
int
|
The delay in seconds between pod failure retries and pod startup retries (in seconds) |
pod_failure_backoff |
float
|
The backoff factor for pod failure retries and pod startup retries. |
Source code in src/zenml/config/secret_reference_mixin.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
kubernetes_step_operator_flavor
Kubernetes step operator flavor.
KubernetesStepOperatorConfig(warn_about_plain_text_secrets: bool = False, **kwargs: Any)
Bases: BaseStepOperatorConfig
, KubernetesStepOperatorSettings
Configuration for the Kubernetes step operator.
Attributes:
Name | Type | Description |
---|---|---|
kubernetes_namespace |
str
|
Name of the Kubernetes namespace to be used. |
incluster |
bool
|
If |
kubernetes_context |
Optional[str]
|
Name of a Kubernetes context to run pipelines in. If the stack component is linked to a Kubernetes service connector, this field is ignored. Otherwise, it is mandatory. |
Source code in src/zenml/stack/stack_component.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|
is_local: bool
property
Checks if this stack component is running locally.
Returns:
Type | Description |
---|---|
bool
|
True if this config is for a local component, False otherwise. |
is_remote: bool
property
Checks if this stack component is running remotely.
This designation is used to determine if the stack component can be used with a local ZenML database or if it requires a remote ZenML server.
Returns:
Type | Description |
---|---|
bool
|
True if this config is for a remote component, False otherwise. |
KubernetesStepOperatorFlavor
Bases: BaseStepOperatorFlavor
Kubernetes step operator flavor.
config_class: Type[KubernetesStepOperatorConfig]
property
Returns KubernetesStepOperatorConfig
config class.
Returns:
Type | Description |
---|---|
Type[KubernetesStepOperatorConfig]
|
The config class. |
docs_url: Optional[str]
property
A url to point at docs explaining this flavor.
Returns:
Type | Description |
---|---|
Optional[str]
|
A flavor docs url. |
implementation_class: Type[KubernetesStepOperator]
property
Implementation class for this flavor.
Returns:
Type | Description |
---|---|
Type[KubernetesStepOperator]
|
The implementation class. |
logo_url: str
property
A url to represent the flavor in the dashboard.
Returns:
Type | Description |
---|---|
str
|
The flavor logo. |
name: str
property
Name of the flavor.
Returns:
Type | Description |
---|---|
str
|
The name of the flavor. |
sdk_docs_url: Optional[str]
property
A url to point at SDK docs explaining this flavor.
Returns:
Type | Description |
---|---|
Optional[str]
|
A flavor SDK docs url. |
service_connector_requirements: Optional[ServiceConnectorRequirements]
property
Service connector resource requirements for service connectors.
Specifies resource requirements that are used to filter the available service connector types that are compatible with this flavor.
Returns:
Type | Description |
---|---|
Optional[ServiceConnectorRequirements]
|
Requirements for compatible service connectors, if a service |
Optional[ServiceConnectorRequirements]
|
connector is required for this flavor. |
KubernetesStepOperatorSettings(warn_about_plain_text_secrets: bool = False, **kwargs: Any)
Bases: BaseSettings
Settings for the Kubernetes step operator.
Attributes:
Name | Type | Description |
---|---|---|
pod_settings |
Optional[KubernetesPodSettings]
|
Pod settings to apply to pods executing the steps. |
service_account_name |
Optional[str]
|
Name of the service account to use for the pod. |
privileged |
bool
|
If the container should be run in privileged mode. |
Source code in src/zenml/config/secret_reference_mixin.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
orchestrators
Kubernetes-native orchestration.
Classes
KubernetesOrchestrator(name: str, id: UUID, config: StackComponentConfig, flavor: str, type: StackComponentType, user: Optional[UUID], created: datetime, updated: datetime, labels: Optional[Dict[str, Any]] = None, connector_requirements: Optional[ServiceConnectorRequirements] = None, connector: Optional[UUID] = None, connector_resource_id: Optional[str] = None, *args: Any, **kwargs: Any)
Bases: ContainerizedOrchestrator
Orchestrator for running ZenML pipelines using native Kubernetes.
Source code in src/zenml/stack/stack_component.py
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 |
|
config: KubernetesOrchestratorConfig
property
Returns the KubernetesOrchestratorConfig
config.
Returns:
Type | Description |
---|---|
KubernetesOrchestratorConfig
|
The configuration. |
settings_class: Optional[Type[BaseSettings]]
property
Settings class for the Kubernetes orchestrator.
Returns:
Type | Description |
---|---|
Optional[Type[BaseSettings]]
|
The settings class. |
validator: Optional[StackValidator]
property
Defines the validator that checks whether the stack is valid.
Returns:
Type | Description |
---|---|
Optional[StackValidator]
|
Stack validator. |
apply_default_resource_requests(memory: str, cpu: Optional[str] = None, pod_settings: Optional[KubernetesPodSettings] = None) -> KubernetesPodSettings
classmethod
Applies default resource requests to a pod settings object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
memory
|
str
|
The memory resource request. |
required |
cpu
|
Optional[str]
|
The CPU resource request. |
None
|
pod_settings
|
Optional[KubernetesPodSettings]
|
The pod settings to update. A new one will be created if not provided. |
None
|
Returns:
Type | Description |
---|---|
KubernetesPodSettings
|
The new or updated pod settings. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 |
|
get_kube_client(incluster: Optional[bool] = None) -> k8s_client.ApiClient
Getter for the Kubernetes API client.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
incluster
|
Optional[bool]
|
Whether to use the in-cluster config or not. Overrides
the |
None
|
Returns:
Type | Description |
---|---|
ApiClient
|
The Kubernetes API client. |
Raises:
Type | Description |
---|---|
RuntimeError
|
if the Kubernetes connector behaves unexpectedly. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|
get_kubernetes_contexts() -> Tuple[List[str], str]
Get list of configured Kubernetes contexts and the active context.
Raises:
Type | Description |
---|---|
RuntimeError
|
if the Kubernetes configuration cannot be loaded. |
Returns:
Name | Type | Description |
---|---|---|
context_name |
List[str]
|
List of configured Kubernetes contexts |
active_context_name |
str
|
Name of the active Kubernetes context. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
|
get_orchestrator_run_id() -> str
Returns the active orchestrator run id.
Raises:
Type | Description |
---|---|
RuntimeError
|
If the environment variable specifying the run id is not set. |
Returns:
Type | Description |
---|---|
str
|
The orchestrator run id. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py
596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 |
|
get_token_secret_name(deployment_id: UUID) -> str
Returns the name of the secret that contains the ZenML token.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
deployment_id
|
UUID
|
The ID of the deployment. |
required |
Returns:
Type | Description |
---|---|
str
|
The name of the secret that contains the ZenML token. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py
380 381 382 383 384 385 386 387 388 389 |
|
prepare_or_run_pipeline(deployment: PipelineDeploymentResponse, stack: Stack, environment: Dict[str, str], placeholder_run: Optional[PipelineRunResponse] = None) -> Any
Runs the pipeline in Kubernetes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
deployment
|
PipelineDeploymentResponse
|
The pipeline deployment to prepare or run. |
required |
stack
|
Stack
|
The stack the pipeline will run on. |
required |
environment
|
Dict[str, str]
|
Environment variables to set in the orchestration environment. |
required |
placeholder_run
|
Optional[PipelineRunResponse]
|
An optional placeholder run for the deployment. |
None
|
Raises:
Type | Description |
---|---|
RuntimeError
|
If the Kubernetes orchestrator is not configured. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py
391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 |
|
Modules
kube_utils
Utilities for Kubernetes related functions.
Internal interface: no backwards compatibility guarantees. Adjusted from https://github.com/tensorflow/tfx/blob/master/tfx/utils/kube_utils.py.
PodPhase
Bases: Enum
Phase of the Kubernetes pod.
Pod phases are defined in https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase.
calculate_max_pod_name_length_for_namespace(namespace: str) -> int
Calculate the max pod length for a certain namespace.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
namespace
|
str
|
The namespace in which the pod will be created. |
required |
Returns:
Type | Description |
---|---|
int
|
The maximum pod name length. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
|
create_edit_service_account(core_api: k8s_client.CoreV1Api, rbac_api: k8s_client.RbacAuthorizationV1Api, service_account_name: str, namespace: str, role_binding_name: str = 'zenml-edit') -> None
Create a new Kubernetes service account with "edit" rights.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
core_api
|
CoreV1Api
|
Client of Core V1 API of Kubernetes API. |
required |
rbac_api
|
RbacAuthorizationV1Api
|
Client of Rbac Authorization V1 API of Kubernetes API. |
required |
service_account_name
|
str
|
Name of the service account. |
required |
namespace
|
str
|
Kubernetes namespace. Defaults to "default". |
required |
role_binding_name
|
str
|
Name of the role binding. Defaults to "zenml-edit". |
'zenml-edit'
|
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 |
|
create_namespace(core_api: k8s_client.CoreV1Api, namespace: str) -> None
Create a Kubernetes namespace.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
core_api
|
CoreV1Api
|
Client of Core V1 API of Kubernetes API. |
required |
namespace
|
str
|
Kubernetes namespace. Defaults to "default". |
required |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
369 370 371 372 373 374 375 376 377 |
|
create_or_update_secret(core_api: k8s_client.CoreV1Api, namespace: str, secret_name: str, data: Dict[str, Optional[str]]) -> None
Create a Kubernetes secret if it doesn't exist, or update it if it does.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
core_api
|
CoreV1Api
|
Client of Core V1 API of Kubernetes API. |
required |
namespace
|
str
|
The namespace in which to create or update the secret. |
required |
secret_name
|
str
|
The name of the secret to create or update. |
required |
data
|
Dict[str, Optional[str]]
|
The secret data. If the value is None, the key will be removed from the secret. |
required |
Raises:
Type | Description |
---|---|
ApiException
|
If the secret creation failed for any reason other than the secret already existing. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 |
|
create_secret(core_api: k8s_client.CoreV1Api, namespace: str, secret_name: str, data: Dict[str, Optional[str]]) -> None
Create a Kubernetes secret.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
core_api
|
CoreV1Api
|
Client of Core V1 API of Kubernetes API. |
required |
namespace
|
str
|
The namespace in which to create the secret. |
required |
secret_name
|
str
|
The name of the secret to create. |
required |
data
|
Dict[str, Optional[str]]
|
The secret data. |
required |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 |
|
delete_secret(core_api: k8s_client.CoreV1Api, namespace: str, secret_name: str) -> None
Delete a Kubernetes secret.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
core_api
|
CoreV1Api
|
Client of Core V1 API of Kubernetes API. |
required |
namespace
|
str
|
The namespace in which to delete the secret. |
required |
secret_name
|
str
|
The name of the secret to delete. |
required |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 |
|
get_pod(core_api: k8s_client.CoreV1Api, pod_name: str, namespace: str) -> Optional[k8s_client.V1Pod]
Get a pod from Kubernetes metadata API.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
core_api
|
CoreV1Api
|
Client of |
required |
pod_name
|
str
|
The name of the pod. |
required |
namespace
|
str
|
The namespace of the pod. |
required |
Raises:
Type | Description |
---|---|
RuntimeError
|
When it sees unexpected errors from Kubernetes API. |
Returns:
Type | Description |
---|---|
Optional[V1Pod]
|
The found pod object. None if it's not found. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
|
is_inside_kubernetes() -> bool
Check whether we are inside a Kubernetes cluster or on a remote host.
Returns:
Type | Description |
---|---|
bool
|
True if inside a Kubernetes cluster, else False. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
69 70 71 72 73 74 75 76 77 78 79 |
|
load_kube_config(incluster: bool = False, context: Optional[str] = None) -> None
Load the Kubernetes client config.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
incluster
|
bool
|
Whether to load the in-cluster config. |
False
|
context
|
Optional[str]
|
Name of the Kubernetes context. If not provided, uses the
currently active context. Will be ignored if |
None
|
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
pod_failed(pod: k8s_client.V1Pod) -> bool
Check if pod status is 'Failed'.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pod
|
V1Pod
|
Kubernetes pod. |
required |
Returns:
Type | Description |
---|---|
bool
|
True if pod status is 'Failed' else False. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
168 169 170 171 172 173 174 175 176 177 |
|
pod_is_done(pod: k8s_client.V1Pod) -> bool
Check if pod status is 'Succeeded'.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pod
|
V1Pod
|
Kubernetes pod. |
required |
Returns:
Type | Description |
---|---|
bool
|
True if pod status is 'Succeeded' else False. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
180 181 182 183 184 185 186 187 188 189 |
|
pod_is_not_pending(pod: k8s_client.V1Pod) -> bool
Check if pod status is not 'Pending'.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pod
|
V1Pod
|
Kubernetes pod. |
required |
Returns:
Type | Description |
---|---|
bool
|
False if the pod status is 'Pending' else True. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
156 157 158 159 160 161 162 163 164 165 |
|
sanitize_label(label: str) -> str
Sanitize a label for a Kubernetes resource.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
label
|
str
|
The label to sanitize. |
required |
Returns:
Type | Description |
---|---|
str
|
The sanitized label. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
|
sanitize_pod_name(pod_name: str, namespace: str) -> str
Sanitize pod names so they conform to Kubernetes pod naming convention.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pod_name
|
str
|
Arbitrary input pod name. |
required |
namespace
|
str
|
Namespace in which the Pod will be created. |
required |
Returns:
Type | Description |
---|---|
str
|
Sanitized pod name. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
|
update_secret(core_api: k8s_client.CoreV1Api, namespace: str, secret_name: str, data: Dict[str, Optional[str]]) -> None
Update a Kubernetes secret.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
core_api
|
CoreV1Api
|
Client of Core V1 API of Kubernetes API. |
required |
namespace
|
str
|
The namespace in which to update the secret. |
required |
secret_name
|
str
|
The name of the secret to update. |
required |
data
|
Dict[str, Optional[str]]
|
The secret data. If the value is None, the key will be removed from the secret. |
required |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 |
|
wait_pod(kube_client_fn: Callable[[], k8s_client.ApiClient], pod_name: str, namespace: str, exit_condition_lambda: Callable[[k8s_client.V1Pod], bool], timeout_sec: int = 0, exponential_backoff: bool = False, stream_logs: bool = False) -> k8s_client.V1Pod
Wait for a pod to meet an exit condition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
kube_client_fn
|
Callable[[], ApiClient]
|
the kube client fn is a function that is called
periodically and is used to get a |
required |
pod_name
|
str
|
The name of the pod. |
required |
namespace
|
str
|
The namespace of the pod. |
required |
exit_condition_lambda
|
Callable[[V1Pod], bool]
|
A lambda which will be called periodically to wait for a pod to exit. The function returns True to exit. |
required |
timeout_sec
|
int
|
Timeout in seconds to wait for pod to reach exit condition, or 0 to wait for an unlimited duration. Defaults to unlimited. |
0
|
exponential_backoff
|
bool
|
Whether to use exponential back off for polling. Defaults to False. |
False
|
stream_logs
|
bool
|
Whether to stream the pod logs to
|
False
|
Raises:
Type | Description |
---|---|
RuntimeError
|
when the function times out. |
Returns:
Type | Description |
---|---|
V1Pod
|
The pod object which meets the exit condition. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kube_utils.py
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 |
|
kubernetes_orchestrator
Kubernetes-native orchestrator.
KubernetesOrchestrator(name: str, id: UUID, config: StackComponentConfig, flavor: str, type: StackComponentType, user: Optional[UUID], created: datetime, updated: datetime, labels: Optional[Dict[str, Any]] = None, connector_requirements: Optional[ServiceConnectorRequirements] = None, connector: Optional[UUID] = None, connector_resource_id: Optional[str] = None, *args: Any, **kwargs: Any)
Bases: ContainerizedOrchestrator
Orchestrator for running ZenML pipelines using native Kubernetes.
Source code in src/zenml/stack/stack_component.py
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 |
|
config: KubernetesOrchestratorConfig
property
Returns the KubernetesOrchestratorConfig
config.
Returns:
Type | Description |
---|---|
KubernetesOrchestratorConfig
|
The configuration. |
settings_class: Optional[Type[BaseSettings]]
property
Settings class for the Kubernetes orchestrator.
Returns:
Type | Description |
---|---|
Optional[Type[BaseSettings]]
|
The settings class. |
validator: Optional[StackValidator]
property
Defines the validator that checks whether the stack is valid.
Returns:
Type | Description |
---|---|
Optional[StackValidator]
|
Stack validator. |
apply_default_resource_requests(memory: str, cpu: Optional[str] = None, pod_settings: Optional[KubernetesPodSettings] = None) -> KubernetesPodSettings
classmethod
Applies default resource requests to a pod settings object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
memory
|
str
|
The memory resource request. |
required |
cpu
|
Optional[str]
|
The CPU resource request. |
None
|
pod_settings
|
Optional[KubernetesPodSettings]
|
The pod settings to update. A new one will be created if not provided. |
None
|
Returns:
Type | Description |
---|---|
KubernetesPodSettings
|
The new or updated pod settings. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 |
|
get_kube_client(incluster: Optional[bool] = None) -> k8s_client.ApiClient
Getter for the Kubernetes API client.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
incluster
|
Optional[bool]
|
Whether to use the in-cluster config or not. Overrides
the |
None
|
Returns:
Type | Description |
---|---|
ApiClient
|
The Kubernetes API client. |
Raises:
Type | Description |
---|---|
RuntimeError
|
if the Kubernetes connector behaves unexpectedly. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|
get_kubernetes_contexts() -> Tuple[List[str], str]
Get list of configured Kubernetes contexts and the active context.
Raises:
Type | Description |
---|---|
RuntimeError
|
if the Kubernetes configuration cannot be loaded. |
Returns:
Name | Type | Description |
---|---|---|
context_name |
List[str]
|
List of configured Kubernetes contexts |
active_context_name |
str
|
Name of the active Kubernetes context. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
|
get_orchestrator_run_id() -> str
Returns the active orchestrator run id.
Raises:
Type | Description |
---|---|
RuntimeError
|
If the environment variable specifying the run id is not set. |
Returns:
Type | Description |
---|---|
str
|
The orchestrator run id. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py
596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 |
|
get_token_secret_name(deployment_id: UUID) -> str
Returns the name of the secret that contains the ZenML token.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
deployment_id
|
UUID
|
The ID of the deployment. |
required |
Returns:
Type | Description |
---|---|
str
|
The name of the secret that contains the ZenML token. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py
380 381 382 383 384 385 386 387 388 389 |
|
prepare_or_run_pipeline(deployment: PipelineDeploymentResponse, stack: Stack, environment: Dict[str, str], placeholder_run: Optional[PipelineRunResponse] = None) -> Any
Runs the pipeline in Kubernetes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
deployment
|
PipelineDeploymentResponse
|
The pipeline deployment to prepare or run. |
required |
stack
|
Stack
|
The stack the pipeline will run on. |
required |
environment
|
Dict[str, str]
|
Environment variables to set in the orchestration environment. |
required |
placeholder_run
|
Optional[PipelineRunResponse]
|
An optional placeholder run for the deployment. |
None
|
Raises:
Type | Description |
---|---|
RuntimeError
|
If the Kubernetes orchestrator is not configured. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py
391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 |
|
kubernetes_orchestrator_entrypoint
Entrypoint of the Kubernetes master/orchestrator pod.
main() -> None
Entrypoint of the k8s master/orchestrator pod.
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator_entrypoint.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 |
|
parse_args() -> argparse.Namespace
Parse entrypoint arguments.
Returns:
Type | Description |
---|---|
Namespace
|
Parsed args. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator_entrypoint.py
50 51 52 53 54 55 56 57 58 59 60 61 |
|
kubernetes_orchestrator_entrypoint_configuration
Entrypoint configuration for the Kubernetes master/orchestrator pod.
KubernetesOrchestratorEntrypointConfiguration
Entrypoint configuration for the k8s master/orchestrator pod.
get_entrypoint_arguments(run_name: str, deployment_id: UUID, kubernetes_namespace: str, run_id: Optional[UUID] = None) -> List[str]
classmethod
Gets all arguments that the entrypoint command should be called with.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
run_name
|
str
|
Name of the ZenML run. |
required |
deployment_id
|
UUID
|
ID of the deployment. |
required |
kubernetes_namespace
|
str
|
Name of the Kubernetes namespace. |
required |
run_id
|
Optional[UUID]
|
Optional ID of the pipeline run. Not set for scheduled runs. |
None
|
Returns:
Type | Description |
---|---|
List[str]
|
List of entrypoint arguments. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator_entrypoint_configuration.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
|
get_entrypoint_command() -> List[str]
classmethod
Returns a command that runs the entrypoint module.
Returns:
Type | Description |
---|---|
List[str]
|
Entrypoint command. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator_entrypoint_configuration.py
44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
get_entrypoint_options() -> Set[str]
classmethod
Gets all the options required for running this entrypoint.
Returns:
Type | Description |
---|---|
Set[str]
|
Entrypoint options. |
Source code in src/zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator_entrypoint_configuration.py
30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
manifest_utils
Utility functions for building manifests for k8s pods.
add_local_stores_mount(pod_spec: k8s_client.V1PodSpec) -> None
Makes changes in place to the configuration of the pod spec.
Configures mounted volumes for stack components that write to a local path.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pod_spec
|
V1PodSpec
|
The pod spec to update. |
required |
Source code in src/zenml/integrations/kubernetes/orchestrators/manifest_utils.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|
add_pod_settings(pod_spec: k8s_client.V1PodSpec, settings: KubernetesPodSettings) -> None
Updates pod spec
fields in place if passed in orchestrator settings.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pod_spec
|
V1PodSpec
|
Pod spec to update. |
required |
settings
|
KubernetesPodSettings
|
Pod settings to apply. |
required |
Source code in src/zenml/integrations/kubernetes/orchestrators/manifest_utils.py
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
|
build_cron_job_manifest(cron_expression: str, pod_name: str, run_name: str, pipeline_name: str, image_name: str, command: List[str], args: List[str], privileged: bool, pod_settings: Optional[KubernetesPodSettings] = None, service_account_name: Optional[str] = None, env: Optional[Dict[str, str]] = None, mount_local_stores: bool = False) -> k8s_client.V1CronJob
Create a manifest for launching a pod as scheduled CRON job.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cron_expression
|
str
|
CRON job schedule expression, e.g. " * * * ". |
required |
pod_name
|
str
|
Name of the pod. |
required |
run_name
|
str
|
Name of the ZenML run. |
required |
pipeline_name
|
str
|
Name of the ZenML pipeline. |
required |
image_name
|
str
|
Name of the Docker image. |
required |
command
|
List[str]
|
Command to execute the entrypoint in the pod. |
required |
args
|
List[str]
|
Arguments provided to the entrypoint command. |
required |
privileged
|
bool
|
Whether to run the container in privileged mode. |
required |
pod_settings
|
Optional[KubernetesPodSettings]
|
Optional settings for the pod. |
None
|
service_account_name
|
Optional[str]
|
Optional name of a service account. Can be used to assign certain roles to a pod, e.g., to allow it to run Kubernetes commands from within the cluster. |
None
|
env
|
Optional[Dict[str, str]]
|
Environment variables to set. |
None
|
mount_local_stores
|
bool
|
Whether to mount the local stores path inside the pod. |
False
|
Returns:
Type | Description |
---|---|
V1CronJob
|
CRON job manifest. |
Source code in src/zenml/integrations/kubernetes/orchestrators/manifest_utils.py
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 |
|
build_namespace_manifest(namespace: str) -> Dict[str, Any]
Build the manifest for a new namespace.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
namespace
|
str
|
Kubernetes namespace. |
required |
Returns:
Type | Description |
---|---|
Dict[str, Any]
|
Manifest of the new namespace. |
Source code in src/zenml/integrations/kubernetes/orchestrators/manifest_utils.py
378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 |
|
build_pod_manifest(pod_name: str, run_name: str, pipeline_name: str, image_name: str, command: List[str], args: List[str], privileged: bool, pod_settings: Optional[KubernetesPodSettings] = None, service_account_name: Optional[str] = None, env: Optional[Dict[str, str]] = None, mount_local_stores: bool = False) -> k8s_client.V1Pod
Build a Kubernetes pod manifest for a ZenML run or step.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pod_name
|
str
|
Name of the pod. |
required |
run_name
|
str
|
Name of the ZenML run. |
required |
pipeline_name
|
str
|
Name of the ZenML pipeline. |
required |
image_name
|
str
|
Name of the Docker image. |
required |
command
|
List[str]
|
Command to execute the entrypoint in the pod. |
required |
args
|
List[str]
|
Arguments provided to the entrypoint command. |
required |
privileged
|
bool
|
Whether to run the container in privileged mode. |
required |
pod_settings
|
Optional[KubernetesPodSettings]
|
Optional settings for the pod. |
None
|
service_account_name
|
Optional[str]
|
Optional name of a service account. Can be used to assign certain roles to a pod, e.g., to allow it to run Kubernetes commands from within the cluster. |
None
|
env
|
Optional[Dict[str, str]]
|
Environment variables to set. |
None
|
mount_local_stores
|
bool
|
Whether to mount the local stores path inside the pod. |
False
|
Returns:
Type | Description |
---|---|
V1Pod
|
Pod manifest. |
Source code in src/zenml/integrations/kubernetes/orchestrators/manifest_utils.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 |
|
build_role_binding_manifest_for_service_account(name: str, role_name: str, service_account_name: str, namespace: str = 'default') -> Dict[str, Any]
Build a manifest for a role binding of a service account.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Name of the cluster role binding. |
required |
role_name
|
str
|
Name of the role. |
required |
service_account_name
|
str
|
Name of the service account. |
required |
namespace
|
str
|
Kubernetes namespace. Defaults to "default". |
'default'
|
Returns:
Type | Description |
---|---|
Dict[str, Any]
|
Manifest for a cluster role binding of a service account. |
Source code in src/zenml/integrations/kubernetes/orchestrators/manifest_utils.py
321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 |
|
build_secret_manifest(name: str, data: Mapping[str, Optional[str]], secret_type: str = 'Opaque') -> Dict[str, Any]
Builds a Kubernetes secret manifest.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Name of the secret. |
required |
data
|
Mapping[str, Optional[str]]
|
The secret data. |
required |
secret_type
|
str
|
The secret type. |
'Opaque'
|
Returns:
Type | Description |
---|---|
Dict[str, Any]
|
The secret manifest. |
Source code in src/zenml/integrations/kubernetes/orchestrators/manifest_utils.py
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 |
|
build_service_account_manifest(name: str, namespace: str = 'default') -> Dict[str, Any]
Build the manifest for a service account.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Name of the service account. |
required |
namespace
|
str
|
Kubernetes namespace. Defaults to "default". |
'default'
|
Returns:
Type | Description |
---|---|
Dict[str, Any]
|
Manifest for a service account. |
Source code in src/zenml/integrations/kubernetes/orchestrators/manifest_utils.py
357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 |
|
pod_settings
Kubernetes pod settings.
Classes
KubernetesPodSettings(warn_about_plain_text_secrets: bool = False, **kwargs: Any)
Bases: BaseSettings
Kubernetes Pod settings.
Attributes:
Name | Type | Description |
---|---|---|
node_selectors |
Dict[str, str]
|
Node selectors to apply to the pod. |
affinity |
Dict[str, Any]
|
Affinity to apply to the pod. |
tolerations |
List[Dict[str, Any]]
|
Tolerations to apply to the pod. |
resources |
Dict[str, Dict[str, str]]
|
Resource requests and limits for the pod. |
annotations |
Dict[str, str]
|
Annotations to apply to the pod metadata. |
volumes |
List[Dict[str, Any]]
|
Volumes to mount in the pod. |
volume_mounts |
List[Dict[str, Any]]
|
Volume mounts to apply to the pod containers. |
host_ipc |
bool
|
Whether to enable host IPC for the pod. |
image_pull_secrets |
List[str]
|
Image pull secrets to use for the pod. |
labels |
Dict[str, str]
|
Labels to apply to the pod. |
env |
List[Dict[str, Any]]
|
Environment variables to apply to the container. |
env_from |
List[Dict[str, Any]]
|
Environment variables to apply to the container. |
Source code in src/zenml/config/secret_reference_mixin.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
Modules
serialization_utils
Kubernetes serialization utils.
Functions
deserialize_kubernetes_model(data: Dict[str, Any], class_name: str) -> Any
Deserializes a Kubernetes model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
Dict[str, Any]
|
The model data. |
required |
class_name
|
str
|
Name of the Kubernetes model class. |
required |
Raises:
Type | Description |
---|---|
KeyError
|
If the data contains values for an invalid attribute. |
Returns:
Type | Description |
---|---|
Any
|
The deserialized model. |
Source code in src/zenml/integrations/kubernetes/serialization_utils.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
|
get_model_class(class_name: str) -> Type[Any]
Gets a Kubernetes model class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
class_name
|
str
|
Name of the class to get. |
required |
Raises:
Type | Description |
---|---|
TypeError
|
If no Kubernetes model class exists for this name. |
Returns:
Type | Description |
---|---|
Type[Any]
|
The model class. |
Source code in src/zenml/integrations/kubernetes/serialization_utils.py
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 |
|
is_model_class(class_name: str) -> bool
Checks whether the given class name is a Kubernetes model class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
class_name
|
str
|
Name of the class to check. |
required |
Returns:
Type | Description |
---|---|
bool
|
If the given class name is a Kubernetes model class. |
Source code in src/zenml/integrations/kubernetes/serialization_utils.py
152 153 154 155 156 157 158 159 160 161 162 163 |
|
serialize_kubernetes_model(model: Any) -> Dict[str, Any]
Serializes a Kubernetes model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model
|
Any
|
The model to serialize. |
required |
Raises:
Type | Description |
---|---|
TypeError
|
If the model is not a Kubernetes model. |
Returns:
Type | Description |
---|---|
Dict[str, Any]
|
The serialized model. |
Source code in src/zenml/integrations/kubernetes/serialization_utils.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
service_connectors
Kubernetes Service Connector.
Classes
KubernetesServiceConnector(**kwargs: Any)
Bases: ServiceConnector
Kubernetes service connector.
Source code in src/zenml/service_connectors/service_connector.py
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 |
|
Modules
kubernetes_service_connector
Kubernetes Service Connector.
The Kubernetes Service Connector implements various authentication methods for Kubernetes clusters.
KubernetesAuthenticationMethods
KubernetesBaseConfig
KubernetesServerConfig
KubernetesServerCredentials
KubernetesServiceConnector(**kwargs: Any)
Bases: ServiceConnector
Kubernetes service connector.
Source code in src/zenml/service_connectors/service_connector.py
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 |
|
KubernetesTokenConfig
KubernetesTokenCredentials
KubernetesUserPasswordConfig
KubernetesUserPasswordCredentials
step_operators
Kubernetes step operator.
Classes
KubernetesStepOperator(name: str, id: UUID, config: StackComponentConfig, flavor: str, type: StackComponentType, user: Optional[UUID], created: datetime, updated: datetime, labels: Optional[Dict[str, Any]] = None, connector_requirements: Optional[ServiceConnectorRequirements] = None, connector: Optional[UUID] = None, connector_resource_id: Optional[str] = None, *args: Any, **kwargs: Any)
Bases: BaseStepOperator
Step operator to run on Kubernetes.
Source code in src/zenml/stack/stack_component.py
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 |
|
config: KubernetesStepOperatorConfig
property
Returns the KubernetesStepOperatorConfig
config.
Returns:
Type | Description |
---|---|
KubernetesStepOperatorConfig
|
The configuration. |
settings_class: Optional[Type[BaseSettings]]
property
Settings class for the Kubernetes step operator.
Returns:
Type | Description |
---|---|
Optional[Type[BaseSettings]]
|
The settings class. |
validator: Optional[StackValidator]
property
Validates the stack.
Returns:
Type | Description |
---|---|
Optional[StackValidator]
|
A validator that checks that the stack contains a remote container |
Optional[StackValidator]
|
registry and a remote artifact store. |
get_docker_builds(deployment: PipelineDeploymentBase) -> List[BuildConfiguration]
Gets the Docker builds required for the component.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
deployment
|
PipelineDeploymentBase
|
The pipeline deployment for which to get the builds. |
required |
Returns:
Type | Description |
---|---|
List[BuildConfiguration]
|
The required Docker builds. |
Source code in src/zenml/integrations/kubernetes/step_operators/kubernetes_step_operator.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
|
get_kube_client() -> k8s_client.ApiClient
Get the Kubernetes API client.
Returns:
Type | Description |
---|---|
ApiClient
|
The Kubernetes API client. |
Raises:
Type | Description |
---|---|
RuntimeError
|
If the service connector returns an unexpected client. |
Source code in src/zenml/integrations/kubernetes/step_operators/kubernetes_step_operator.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
|
launch(info: StepRunInfo, entrypoint_command: List[str], environment: Dict[str, str]) -> None
Launches a step on Kubernetes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
info
|
StepRunInfo
|
Information about the step run. |
required |
entrypoint_command
|
List[str]
|
Command that executes the step. |
required |
environment
|
Dict[str, str]
|
Environment variables to set in the step operator environment. |
required |
Source code in src/zenml/integrations/kubernetes/step_operators/kubernetes_step_operator.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
|
Modules
kubernetes_step_operator
Kubernetes step operator implementation.
KubernetesStepOperator(name: str, id: UUID, config: StackComponentConfig, flavor: str, type: StackComponentType, user: Optional[UUID], created: datetime, updated: datetime, labels: Optional[Dict[str, Any]] = None, connector_requirements: Optional[ServiceConnectorRequirements] = None, connector: Optional[UUID] = None, connector_resource_id: Optional[str] = None, *args: Any, **kwargs: Any)
Bases: BaseStepOperator
Step operator to run on Kubernetes.
Source code in src/zenml/stack/stack_component.py
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 |
|
config: KubernetesStepOperatorConfig
property
Returns the KubernetesStepOperatorConfig
config.
Returns:
Type | Description |
---|---|
KubernetesStepOperatorConfig
|
The configuration. |
settings_class: Optional[Type[BaseSettings]]
property
Settings class for the Kubernetes step operator.
Returns:
Type | Description |
---|---|
Optional[Type[BaseSettings]]
|
The settings class. |
validator: Optional[StackValidator]
property
Validates the stack.
Returns:
Type | Description |
---|---|
Optional[StackValidator]
|
A validator that checks that the stack contains a remote container |
Optional[StackValidator]
|
registry and a remote artifact store. |
get_docker_builds(deployment: PipelineDeploymentBase) -> List[BuildConfiguration]
Gets the Docker builds required for the component.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
deployment
|
PipelineDeploymentBase
|
The pipeline deployment for which to get the builds. |
required |
Returns:
Type | Description |
---|---|
List[BuildConfiguration]
|
The required Docker builds. |
Source code in src/zenml/integrations/kubernetes/step_operators/kubernetes_step_operator.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
|
get_kube_client() -> k8s_client.ApiClient
Get the Kubernetes API client.
Returns:
Type | Description |
---|---|
ApiClient
|
The Kubernetes API client. |
Raises:
Type | Description |
---|---|
RuntimeError
|
If the service connector returns an unexpected client. |
Source code in src/zenml/integrations/kubernetes/step_operators/kubernetes_step_operator.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
|
launch(info: StepRunInfo, entrypoint_command: List[str], environment: Dict[str, str]) -> None
Launches a step on Kubernetes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
info
|
StepRunInfo
|
Information about the step run. |
required |
entrypoint_command
|
List[str]
|
Command that executes the step. |
required |
environment
|
Dict[str, str]
|
Environment variables to set in the step operator environment. |
required |
Source code in src/zenml/integrations/kubernetes/step_operators/kubernetes_step_operator.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
|