instant3Dhub on Kubernetes#

Read First#

Kubernetes is the targeted platform for running instant3Dhub. Therefore, this guide assumes a Kubernetes cluster exists and can be accessed for deployments. Details about the requirements for running instant3Dhub can be found here.

instant3Dhub is shipped with all the necessary components and services to run completely in Kubernetes without the need to setup external services. However, it is possible to use external services like PostgreSQL and RabbitMQ in order to properly ensure data is persisted between version upgrades. Setting up these external services is recommended in some scenarios and especially in production environments.

More information on how to configure instant3Dhub to run with external services can be found below.

Limitations#

  • HTTPS: HTTPS is not supported inside the cluster or at the gateway. Currently, HTTPS can be used by adding a proxy outside of the cluster.

  • Services: Any backend services requiring GPU support are disabled by default. To use these, change the configured number of pods either by scaling or adapting the configuration.

Installation#

Transfer docker images#

Our docker images are available on our public registry harbor.threedy.io/instant3dhub and can be pulled from there without credentials. However, we recommend that you transfer the images to your own registry as we do not guarantee high availability of our registry. For transferring images to another docker registry, we provide a script.

./transfer_images.sh harbor.threedy.io/instant3dhub registry.yourdomain.com

Images and charts are signed with cosign, every version from 3.12.0 on. To keep digests and signatures intact in your registry, copy every image of the version with cosign copy instead. The images are listed in I3DHUB_IMAGES in the transfer script, or in the output of helm template with --set registry=harbor.threedy.io/instant3dhub:

cosign copy harbor.threedy.io/instant3dhub/<image>:<tag> registry.yourdomain.com/<image>:<tag>

Verify an image by digest with our public key:

cosign verify --key cosign.pub harbor.threedy.io/instant3dhub/<image>@sha256:<digest>

Our public key is published at https://repo.threedy.io/cosign/cosign.pub. Its SHA-256 is c0e2d0e85ac3afa84a420cb48a522c23fa59b1f3e7fe0bc168f76d43330be602.

Install Helm#

We provide a Helm Chart for the deployment of instant3Dhub on Kubernetes. It is published as an OCI artifact on harbor.threedy.io, which requires Helm 3.8 or newer.

Therefore, helm should be installed first:

curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 \
 && chmod 700 get_helm.sh \
 && ./get_helm.sh

The chart is available from these projects on harbor.threedy.io:

Project

Chart

Access

Release

oci://harbor.threedy.io/instant3dhub/instant3dhub

public, no credentials

Preview

oci://harbor.threedy.io/instant3dhub-preview/instant3dhub

credentials for your organisation, from Threedy Customer Success

Track

oci://harbor.threedy.io/<your project>/instant3dhub-trk-<track>

credentials for your organisation, from Threedy Customer Success

There is no repository to add: Helm references the chart directly. For the preview and for tracks, log in first:

helm registry login harbor.threedy.io --username '<your username>' --password-stdin

To list the available release versions:

curl -s "https://harbor.threedy.io/api/v2.0/projects/instant3dhub/repositories/instant3dhub/artifacts?with_tag=true&page_size=100" \
  | jq -r '.[].tags[]?.name'

To download and extract the chart, for example to read or adapt it:

helm pull oci://harbor.threedy.io/instant3dhub/instant3dhub --version <version> --untar

If you install from images.threedy.io or the Helm repository on repo.threedy.io today, see Moving to harbor.threedy.io.

You can now deploy using helm install, but first several configuration options are required and must be set before deployment:

  • license.serialKey

  • storage.class

  • entrypoints

  • registry

All configuration options of the chart, together with their default values, are defined in its values.yaml. More details and explanations can be found in the comments of the values.yaml. The options listed above are explained in the following sections.

Configure#

license.serialKey#

A license is required in order to run instant3Dhub. The license key is used to automatically report billable usage metrics to Threedy. If you do not have a license key, please request one at sales@threedy.io.

For air-gapped environments, an on-premise License Server is required. In this case, you will need a separate server on which to install the host-bound License Server. See here for more information.

Instead of using a license key, you will then need to set the licenseServer parameter to the address of the License Server instead.

storage.class#

instant3Dhub requires a set of volumes for persistence and data exchange between services in the system.

In case you have a storage class that provides persistent volumes dynamically, the storage.class option can be set to the name of your storage class.

Note

If you create the persistent volumes manually with the correct labels, the storage.class option can be skipped.

Note

Since instant3Dhub 3.11.0 a storage class can be set per access mode through storage.readWriteManyClass and storage.readWriteOnceClass. This is required whenever no single storage class serves both access modes, which is the normal case on a managed Kubernetes service. See instant3Dhub on Azure (AKS) and instant3Dhub on AWS (EKS) for the concrete storage classes to use.

Otherwise, make sure that you create the following static persistent volumes with their corresponding labels:

Name

Size

Type

Labels

cache_volume

20GB

RWX

app: i3dhub-cache & instance: <k8s-namespace>

postgres_volume

5GB

RWO

app: i3dhub-postgres & instance: <k8s-namespace>

entrygw_volume

2GB

RWX

app: i3dhub-entrygw & instance: <k8s-namespace>

rabbitmq_volume

1GB

RWO

app: i3dhub-rabbitmq & instance: <k8s-namespace>

upload_volume

5GB

RWX

app: i3dhub-uploadsvc & instance: <k8s-namespace>

prometheus_volume

5GB

RWO

app: i3dhub-prometheus & instance: <k8s-namespace>

jaeger_volume

5GB

RWO

app: i3dhub-jaeger & instance: <k8s-namespace>

An example of static persistent volumes can be found here.

entrypoints#

In order for the system to address its resources properly, the entry points for the system must be set. An entry point is a URL from which the system is accessible. For example, if you have proxy in front of your cluster, the entry point must be set to be the URL of the proxy.

registry#

Images will be pulled from the provided registry. After transferring the images to a registry, the registry value should contain the URL of your registry. To pull directly from Threedy, use harbor.threedy.io/instant3dhub.

The preview and tracks are private. For those, set registry to harbor.threedy.io/instant3dhub-preview or harbor.threedy.io/<your project>/trk-<track>, and reference a pull secret with your credentials in imagePullSecret:

kubectl create secret docker-registry harbor-pull \
  --docker-server=harbor.threedy.io \
  --docker-username='<your username>' \
  --docker-password='<secret>' \
  -n <namespace>

Install#

After determining the required values for the installation, you can now install instant3Dhub with the following command:

helm install [release-name] oci://harbor.threedy.io/instant3dhub/instant3dhub \
  --version <version> \
  --set license.serialKey=key-here \
  --set storage.class=your-storage-class \
  --set entrypoints={https://proxy.yourdomain.com} \
  --set registry=registry.yourdomain.com

For the preview or a track, use its chart source and registry (see above) and add --set imagePullSecret=harbor-pull.

As an alternative please consider the reference scripts located here.

The startup and initialization of all containers can take a few minutes, depending on your cluster and registry connection speed. To check the status of the containers run:

watch kubectl get pods -n your-namespace

After all containers are running, the system might take up to one minute to initialize correctly.

Using External Services#

PostgreSQL#

The system can optionally work with a previously provisioned PostgreSQL instance. This instance must be initialized correctly with our schema and tables. For more information please see our guide.

If you are using external PostgresSQL, the connection string must be configured via kubernetes secrets. These secrets can then referenced in our helm chart:

Name

Description

credentials.postgres.system.secretKeyRef.name

The name of the secret where the connection string is stored

credentials.postgres.system.secretKeyRef.key

The name of the key in the secret’s items.

RabbitMQ#

The system uses RabbitMQ to dispatch jobs. If you want to use external service for that, it is possible to change the configuration to point instant3Dhub to use the external service.

As with PostgreSQL, these must be set via secrets. The following values need to be set in our helm chart:

Name

Description

credentials.rabbitmq.secretKeyRef.name

The name of the secret where the connection string is stored

credentials.rabbitmq.secretKeyRef.key

The name of the key in the secret’s items.