Installing the SpectroCloud Cluster Provider Plugin#
This guide will help you install and set up the SpectroCloud cluster provider plugin.
Prerequisites#
- A working Backstage instance
- The Backstage Kubernetes plugin installed
- SpectroCloud Palette API credentials
Important: Backstage currently supports only one custom cluster supplier at a time. If you are also using the VCFA VKS Cluster Provider, only one of the two plugins can be enabled in your Backstage instance at a time.
Installation Steps#
1. Add Required Package#
yarn --cwd packages/backend add @terasky/backstage-plugin-spectrocloud-cluster-provider
2. Add to Backend#
Modify packages/backend/src/index.ts:
backend.add(import('@terasky/backstage-plugin-spectrocloud-cluster-provider'));
3. Configure SpectroCloud#
Add to your app-config.yaml:
spectrocloud:
environments:
- name: production
url: https://api.spectrocloud.com
tenant: my-tenant
apiToken: ${SPECTROCLOUD_API_TOKEN}
clusterProvider:
includeProjects: [production]
Verification#
After installation:
- Check backend logs for cluster discovery messages
- Navigate to a component with Kubernetes resources
- Verify SpectroCloud clusters appear
Testing#
Look for log messages like:
SpectroCloud: Discovered X clusters
SpectroCloud: Created RBAC for cluster Y
Troubleshooting#
Common Issues#
- No Clusters Found
- Verify API credentials
- Check project filters
-
Review network connectivity
-
RBAC Setup Failures
- Verify kubeconfig has admin access
- Check cluster connectivity
- Review backend logs
Next Steps#
- Configure project filtering
- Customize RBAC settings