Skip to main content

H2O Versions

H2O Versions are used to specify the version of H2O-3 to use for H2O engines. The end-user must select a version when creating an H2O engine.

Advanced users and app developers

See the module documentation for full client reference.

Applying H2O Versions

You can apply a target state of all H2O Versions via configuration. No need to manually Create, Update or Delete all H2O Versions. All existing H2O Versions not specified in the input configuration will be deleted!

import h2o_engine_manager

from h2o_engine_manager.clients.base.image_pull_policy import ImagePullPolicy
from h2o_engine_manager.clients.internal_h2o_version.version_config import InternalH2OVersionConfig

# Initialize the client for H2O-3 versions.
client = h2o_engine_manager.login().internal_h2o_version_client

configs = [
InternalH2OVersionConfig(
internal_h2o_version_id="3.40.0.4",
image="h2oai/h2o-open-source-k8s:3.40.0.4",
aliases=["latest"],
),
InternalH2OVersionConfig(
internal_h2o_version_id="3.38.0.4",
image="h2oai/h2o-open-source-k8s:3.38.0.4",
),
InternalH2OVersionConfig(
internal_h2o_version_id="3.36.1.5",
image="h2oai/h2o-open-source-k8s:3.36.1.5",
deprecated=True,
image_pull_policy=ImagePullPolicy.IMAGE_PULL_POLICY_ALWAYS,
image_pull_secrets=["secret1", "secret2"],
)
]

# All other versions not specified in the configs will be deleted.
client.apply_internal_h2o_versions(version_configs=configs)

Feedback