Registries mirroring
Find out which registries need a mirror in the company, and why.
Platforma gets its charts, images, assets and BlocksBlock — A small application for one step of an analysis, for example the import of reads or clustering. It can combine several tools. Glossary from public registries. When the cluster or the computers of users cannot reach them, a mirror in the company gives the same content, and Platforma works with only the access to the internet that the company allows. A mirror also lets the company scan each image when it comes in, and keeps large downloads inside the corporate network or the cloud region.
Platforma needs all these registries when you install it and for as long as it runs. KubernetesKubernetes — A system that runs programs on a group of machines (a cluster). Platforma can run in a Kubernetes cluster. Glossary can move a pod to a different node at any time, and that node pulls the image again. If the registry is not available at that time, the pod does not start and the service stops. The registries differ only in how often Platforma pulls from them:
- Registries pulled rarely: charts and fixed images.
- Registries pulled often: tools, assets and Blocks.
- Single Server mode: images, assets, packages and Blocks.
- What the cloud-specific modules do: caches made for you.
A cache that only decreases the traffic pays off for the software images of the tools, and gives little for the items that Platforma pulls rarely. But when the security rules of the company do not allow direct access to the registries, mirror every registry: a registry without a mirror makes the installation unstable.
The guides of this section are for the Terraform modulesTerraform modules — The Terraform code that MiLaboratories provides to install Platforma. The cloud-specific Terraform modules make the cluster and its cloud parts in AWS or Google Cloud; the cloud-agnostic Terraform modules install Platforma into the cluster. Glossary, the Helm chart and the Single ServerSingle Server mode — The mode in which the Backend and all its jobs run on one Linux machine, the server, with no Kubernetes cluster. Glossary installation pathinstallation path — A set of tools and steps that installs Platforma. There are five installation paths: the AWS installer, the Google Cloud installer, the Terraform modules, the Helm chart and Single Server mode. Glossary.
Registries pulled rarely
The installation gets the Helm charts on the machine that runs Terraform or Helm, and the nodes pull 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. These items have fixed versions: the modules or the chart name them. A node pulls an image again when a pod moves to it, and an upgrade gets the new versions. Copy each version before you install or upgrade, and keep the mirror available for as long as Platforma runs.
| Registry | Address | What it gives | Who uses it | Guide |
|---|---|---|---|---|
| Helm charts | oci://ghcr.io/milaboratory/platforma-install, oci://registry.k8s.io/kueue/charts; on AWS, the chart repositories of the cluster add-ons |
The charts platforma-backend, appwrapper and kueue |
The machine that runs Terraform or Helm | Helm charts |
| Backend image | quay.io/milaboratories/platforma |
The Backend | The nodes | Backend and controller images |
| Controller and helper images | registry.k8s.io/kueue/kueue; containers.pl-open.science/milaboratories/pl-containers |
KueueKueue — A Kubernetes add-on that holds jobs in a queue until the cluster has free CPU, memory and GPU for them. Glossary, the 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, the 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, the GPU node startup image (AWS), the 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 image (Google Cloud) | The nodes | Backend and controller images |
| Images of the cluster add-ons (AWS) | public.ecr.aws, registry.k8s.io, nvcr.io |
The load balancer controller, the cluster autoscaler, the EBS and EFS CSI drivers, external-dns, the NVIDIA device plugin | The nodes | Backend and controller images |
Registries pulled often
When users run Blocks, the nodes, the Backend and the Desktop AppDesktop App — The program that each user installs on their own computer to work with Platforma. It is a client of the Backend. Glossary get more items: each job pulls the image of its tool on each new node. There is no fixed list of these items: a new version of a Block can bring its own tool image or asset, and scientists choose the Block versions in their projects. Thus these mirrors fill on demand, or the company copies the new items at regular intervals.
| Registry | Address | What it gives | When it is needed | Who uses it | Guide |
|---|---|---|---|---|---|
| Software images of the tools | containers.pl-open.science/milaboratories/pl-containers |
The containers in which the jobs run the tools | Each job, on a node that does not have the image | The nodes | Software images of the tools |
| Static assets | https://bin.pl-open.science/ |
Reference data, for example genome annotations | When a Block needs an asset | The Backend | Static assets |
| Block registryBlock registry — A service from which the Desktop App downloads Blocks. MiLaboratories runs the main one; a company can add its own. Glossary | https://blocks.pl-open.science/ |
The Blocks: the list, and the files of each Block version | When users add or update a Block. When the Desktop App opens a project without the interface of a Block in its cache. When the Backend gets the workflowworkflow — The part of a Block that runs in the Backend. It starts the tools on the data and collects the results. Users do not edit it. Glossary of a Block. | The Desktop App and the Backend | Block registry |
The Desktop App and the Backend both read the Block registry. The Desktop App gets the Blocks,
and the Backend gets the workflow template packs of the Blocks. A mirror of the Block registry is
necessary when the company does not let the computers of users or the Backend connect to
blocks.pl-open.science. Then the mirror must serve both. To point the Backend to the mirror,
see Block registry mirror for the Backend.
Single Server mode
In Single Server mode, the Backend and the Desktop App need fewer registries, but each one for as long as Platforma runs:
| Registry | When it is needed | Guide |
|---|---|---|
| Software images of the tools | Each job, when the jobs run in Docker | Software images of the tools |
| Static assets | When a Block needs an asset | Static assets |
| Software packages | Each tool, when the jobs run without Docker | Static assets: a caching proxy of the same host gives them |
| Block registry | As with a cluster: the Desktop App and the Backend read it | Block registry |
A Kubernetes cluster does not use the software packages: its jobs always run in containers.
What the cloud-specific modules do
By default, 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 pull-through caches in the registry service of the cloud, in AWS and in Google Cloud. They make one cache for the software images of the tools and one for the Backend image. For what each cache holds, its inputs and how to turn it off, see Caches of the cloud-specific modules.
The caches of the modules do not cover the Helm charts, the images of Kueue and of the cluster add-ons, the static assets and the Block registry. When the cluster cannot reach them, make these mirrors yourself with the guides of this section.
For what Platforma expects from a mirror, see Registries and mirrors. For the full list of hosts, see Outbound connections.