Skip to main content
Version: Next

Deploy the Contrast runtime

This step configures the host environment on your Kubernetes worker nodes.

Applicability

Required for all Contrast deployments.

Prerequisites

  1. Set up cluster
  2. Install CLI

How-to

Contrast depends on a custom Kubernetes RuntimeClass (contrast-cc), which needs to be installed in the cluster prior to the Coordinator or any confidential workloads. This consists of a RuntimeClass resource and a DaemonSet that performs installation on worker nodes. This step is only required once for each version of the runtime. It can be shared between Contrast deployments. Also, different Contrast runtime versions can be installed in the same cluster.

kubectl apply -f https://github.com/edgelesssys/contrast/releases/latest/download/runtime-aks-clh-snp.yml
Modifications to containerd configuration

The Contrast node installer will modify the containerd configuration on the worker nodes to add the runtime class. A backup will be created for the original configuration.

Some Kubernetes platforms, for example K3s, use a template for the containerd configuration. Notice that Contrast can't modify these templates, but will write the templated version instead. Any modifications made to the template afterward won't take effect.