Backend and controller images
Copy the Backend image and the controller images to a registry of the company and point Platforma to them.
The BackendBackend — The server program of Platforma. It keeps the projects, runs the Blocks and starts jobs. Glossary image and the images of the controllers have fixed versions, so you copy exactly these versions to the registry of the company before you install or upgrade. A node pulls an image again each time a pod moves to it, so keep the mirror available for as long as Platforma runs.
| Image | Source | Terraform input that sets the mirror | Helm value |
|---|---|---|---|
| Backend | quay.io/milaboratories/platforma |
backend_service.backend.image.repository of platforma-tf-services |
backend.image.repository |
| Cleanup jobjob — One run of a tool on data. The Backend starts jobs on the server where it runs, or in a Kubernetes cluster. Glossary | containers.pl-open.science/milaboratories/pl-containers:alpine.k8s.1.35.4 |
backend_service.cleanup.app_wrappers.image.repository of platforma-tf-services |
cleanup.appWrappers.image.repository |
| KueueKueue — A Kubernetes add-on that holds jobs in a queue until the cluster has free CPU, memory and GPU for them. Glossary | registry.k8s.io/kueue/kueue |
components.kueue.image.repository of platforma-tf-services-cluster |
— |
| AppWrapperAppWrapper — A Kubernetes add-on that wraps the pods of one job into a single unit, so that Kueue admits and starts them together. Glossary controller | containers.pl-open.science/milaboratories/pl-containers |
components.appwrapper.image.repository of platforma-tf-services-cluster |
— |
| GPU node startup (AWS) | containers.pl-open.science/milaboratories/pl-containers:alpine.k8s.1.35.4 |
components.gpu_node_ready.image of platforma-tf-cloud-cluster |
— |
| Workspaceworkspace — The storage where the Backend and all jobs keep the working files of running jobs. The Backend and the jobs use it at the same time. In Kubernetes, it is a network file system; in Single Server mode, it is a folder on the server. Glossary init (Google Cloud) | containers.pl-open.science/milaboratories/pl-containers:busybox.1.37.0 |
components.workspace_init.image of platforma-tf-cloud-cluster |
— |
Set the mirror of each image in this table. The cloud-specific Terraform modulescloud-specific Terraform modules — The Terraform modules platforma-tf-cloud-base and platforma-tf-cloud-cluster. There is one pair for each cloud, AWS and Google Cloud. The roots cloud and cluster apply them. They make the network, the Kubernetes cluster, the storage, the cloud identities and the registry caches. They give the hand-off file cluster_config to the cloud-agnostic Terraform modules. Glossary make a cache of the Backend image by default: see Caches of the cloud-specific modules. With the Helm chart, the team that runs the cluster installs Kueue and AppWrapper from its own mirrors.
-
Find the versions to copy:
- Backend: the tag is the
appVersionof the chartplatforma-backend, unless you set a tag. To see it, runhelm show chart <chart> --version <chart version>. - Kueue and AppWrapper: the module
platforma-tf-services-clusterpins the tag and the digest of each image, and its README lists them. For example, the current release runsregistry.k8s.io/kueue/kueue:v0.16.9andcontainers.pl-open.science/milaboratories/pl-containers:appwrapper-v1.2.3-milab.1. - Helper images: the tags in the table.
- Backend: the tag is the
-
Copy each image with its tag, its digest and all its architectures. Use a tool that keeps them, for example
regctl image copy:Terminal window regctl image copy quay.io/milaboratories/platforma:<version> \registry.example.com/milaboratories/platforma:<version>regctl image copy \containers.pl-open.science/milaboratories/pl-containers:appwrapper-v1.2.3-milab.1 \registry.example.com/milaboratories/pl-containers:appwrapper-v1.2.3-milab.1Result: the digest of the copy is the same as the digest of the original:
Terminal window regctl image digest registry.example.com/milaboratories/pl-containers:appwrapper-v1.2.3-milab.1The modules pull Kueue and AppWrapper by tag and digest: the nodes cannot pull a copy with a different digest.
-
Give the nodes read access to the mirror: the cloud identitycloud identity — The identity that the cloud gives to the Platforma pod (IAM roles for service accounts on AWS, Workload Identity on Google Cloud). With it, Platforma needs no access keys. Glossary of the nodes, or an image pull Secret. See Credentials of a mirror.
-
Point Platforma to the mirror:
Tool: platforma-tf-* modules (cloud and cloud-agnostic)
platforma-tf-services backend_service = {backend = { image = { repository = "registry.example.com/milaboratories/platforma" } }cleanup = { app_wrappers = { image = { repository = "registry.example.com/milaboratories/pl-containers" } } }}Inputs of platforma-tf-services-cluster components = {kueue = { image = { repository = "registry.example.com/kueue/kueue" } }appwrapper = { image = { repository = "registry.example.com/milaboratories/pl-containers" } }}Inputs of platforma-tf-cloud-cluster # AWScomponents = {gpu_node_ready = { image = "registry.example.com/milaboratories/pl-containers:alpine.k8s.1.35.4" }}# Google Cloudcomponents = {workspace_init = { image = "registry.example.com/milaboratories/pl-containers:busybox.1.37.0" }}Tool: platforma-backend
values.yaml backend:image: { repository: registry.example.com/milaboratories/platforma }cleanup:appWrappers:image: { repository: registry.example.com/milaboratories/pl-containers } -
Install or upgrade Platforma, then check the images of the pods:
Terminal window kubectl -n platforma get pods -o jsonpath='{.items[*].spec.containers[*].image}'Result: the image names start with the address of the mirror, and the pods are
Running.
Images of the cluster add-ons (AWS)
On AWS, platforma-tf-cloud-cluster installs the cluster add-ons: the load balancer controller,
the cluster autoscaler, the EBS and EFS CSI drivers, external-dns and the NVIDIA device plugin.
Their charts pull the images from public.ecr.aws, registry.k8s.io and nvcr.io, and the
module does not have an input that points these images to a mirror. In a restricted network, let
the nodes reach these registries, or install the add-on yourself from the mirrors of the company
and set components.<add-on>.install = false of platforma-tf-cloud-cluster.
The software images of the tools are a different case: there are many of them, and the mirror fills on demand. See Software images of the tools.