Skip to main content

Cookbook

These are practical recipes for different deployment scenarios.

Select here the tab with the scenario you want deploy:

Docusaurus themed imageDocusaurus themed image

Select here the featured plugin you want to try:

Offload your pods to a remote machine with Docker engine available

There are more 3rd-party plugins developed that you can get inspired by or even use out of the box. You can find some ref in the quick start section

Deploy Remote components (if any)

In general, starting from the deployment of the remote components is adviced. Since the kubernetes virtual node won't reach the Ready status until all the stack is successfully deployed.

Go directly to "Test and debugging tips". The selected scenario does not expect you to do anything here.

Plugin service

Go directly to "Test and debugging tips". The selected scenario does not expect you to do anything here.

interLink comes with a call that can be used to monitor the overall status of both interlink server and plugins, at once.

curl -v --unix-socket ${HOME}/.interlink.sock  http://unix/pinglink

This call will return the status of the system and its readiness to submit jobs.

Deploy Kubernetes components

The deployment of the Kubernetes components are managed by the official HELM chart. Depending on the scenario you selected, there might be additional operations to be done.

  • Create an helm values file:
values.yaml
nodeName: interlink-with-socket

plugin:
enabled: true
image: "plugin docker image here"
command: ["/bin/bash", "-c"]
args: ["/app/plugin"]
config: |
your plugin
configuration
goes here!!!
socket: unix:///var/run/plugin.sock

interlink:
enabled: true
socket: unix:///var/run/interlink.sock

Eventually deploy the latest release of the official helm chart:

helm upgrade --install --create-namespace -n interlink my-virtual-node oci://ghcr.io/intertwin-eu/interlink-helm-chart/interlink --values ./values.yaml

You can fix the version of the chart by using the --version option.

Whenever you see the node ready, you are good to go!

To start debugging in case of problems we suggest starting from the pod containers logs!

Test the setup

Please find a demo pod to test your setup here.