Development environment only: Configuring internal Docker registry for autoscaling
About this task
Dynamic Engine ships with an internal Docker registry intended for quick-start deployments. This registry is not recommended for production use and should not be customized for autoscaling in production environments. For production deployments, configure an external Docker registry instead. See Configuring a custom Docker registry for Talend Management Console tasks for recommended configuration.
If you are using legacy deployments with autoscaling enabled on the internal registry, this procedure describes how to configure it. In the example below, you activate HPA on the internal Docker registry and set a custom value for the number of replicas to be created and the maximum number of replicas. HPA stands for horizontal pod autoscaling, a Kubernetes feature that automatically adjusts the number of pods in response to demand. A pod is a Kubernetes object that represents a group of one or more containers.
If you use autoscaling with the internal Docker registry, you must keep persistent shared storage enabled. Set configuration.persistence.enabled=true in your deployment values file. Without persistent shared storage, autoscaling on the internal registry will fail. This is a critical requirement for the internal registry autoscaling to function.
Procedure
What to do next
Before you deploy or upgrade your Dynamic Engine instance, verify that persistent shared storage is enabled in your values file: configuration.persistence.enabled=true. This is required for autoscaling to function properly.
Apply the values files (both the main values file and this custom autoscaling file) during installation or upgrade:
helm install -i dynamic-engine-$DYNAMIC_ENGINE_ID -f $DYNAMIC_ENGINE_ID-values.yaml \
-f $DYNAMIC_ENGINE_ID-custom-internal-registry.yaml \
oci://ghcr.io/talend/helm/dynamic-engine \
--version $DYNAMIC_ENGINE_VERSION