Add a Kubernetes Cluster
spirlctl will by default use the currently-configured kubectl context to deploy the SPIRL Agents. Run the following command to add the cluster to SPIRL and deploy agents to it in one step:
./spirlctl cluster add "cluster-1" --trust-domain "example.com"
That’s it!! SPIRL is now running, and every pod you deploy from here on out will have a SPIFFE Workload API socket automatically injected, with both X.509 and JWT identities available. To see it in action, continue following along (below) to deploy a SPIFFE demo app.
[Optional] Repeat the above command with a different cluster name and kubectl context to add more Kubernetes clusters to the [example.com](http://example.com) trust domain.