Installing Space Agent for VMs | Codezero Documentation
In instances where services are not managed within a Kubernetes cluster, the Space Agent binary can be used outside the cluster to consume services within a Virtual Private Cloud (VPC).
The configuration file referenced in the CZ_SPACE_CONFIG environment variable must list the services that you want to access via this Space Agent. Each record consists of the following fields:
Below is an example of a configuration file for two services, one on the local host and one on host 10.0.0.2:
#!/bin/sh
export CZ_SPACE_CONFIG=compute-services.yaml
export CZ_EXTERNAL_HOST=`curl https://ifconfig.me`
export CZ_HUB_SPACE_NAME="VM Space"
export CZ_HUB_ORG_ID="xxxxxx"
export CZ_HUB_ORG_APIKEY="xxxxxxx"
./spaceagent