Skip to main content

Register Cluster with SPIRL Trust Domain Server

In order for SPIRL Agents running in the cluster to be able to connect to the Trust Domain server, you need to register the cluster with the Trust Domain server. You can register the cluster by running the following command:

spirlctl cluster register workloads-cl-3 --trust-domain spirl.example.com  --platform k8s

In this command, workloads-cl-3 is the name of the cluster to register and spirl.example.com is the name of the trust domain. It will produce the following output:

Successfully registered cluster workloads-cl-3 to trust domain spirl.example.com
Cluster Version ID: cv-1r0yfu9yjy
Private Key:
-----BEGIN PRIVATE KEY-----
MC4CAQAwBQYDK2VwBCIEIMkReSwyvhVzOmfwzXzIF3vd4M+BWOZ9ppjj6EFWG8gl
-----END PRIVATE KEY-----

You'll need to provide the Cluster Version ID and Private Key to the agent Helm chart when deploying the agent in the cluster. You should keep the Private Key in the secure location.