OpenShift Deployer Parameters for OpenLegacy Hub
OpenLegacy Hub's OpenShift deployer requires specific JSON parameters for authentication and deployment targeting.
Default Configuration Template
{
"replicas": 1,
"clientMasterUrl": null,
"clientToken": null,
"namespace": "default",
"command": "",
"selector": {},
"awaitTimeout": 10000,
"serviceUrl": ""
}
Parameter Reference Table
| Parameter | Description | Required | Example Value |
|---|---|---|---|
| replicas | Number of pod replicas | Optional | 1 |
| clientMasterUrl | OpenShift cluster API URL | Required | https://api.YOUR-CLUSTER.com |
| clientToken | OpenShift auth token (oc whoami -t) | Required | sha256~aaaaaaaaaaa-aaaaa |
| namespace | Target namespace | Recommended | YOUR_NAMESPACE |
| awaitTimeout | Readiness timeout (ms) | Recommended | 120000 |
| command | Custom container command | Optional | "" |
| selector | Pod selector labels | Optional | |
| serviceUrl | Service exposure URL | Optional | "" |
How to Get Your Values
clientMasterUrl: From OpenShift console → ? → Command line tools → Copy login command → Display token
The clientMasterUrl is written in the login command after the server flag which also includes the token
clientToken:
oc login https://api.YOUR-CLUSTER.com
oc whoami -t
namespace: Your target deployment space (case-sensitive)
Minimal Production Config
{
"replicas": 1,
"clientMasterUrl": "https://api.YOUR-CLUSTER.com",
"clientToken": "sha256~YOUR-TOKEN",
"namespace": "production",
"awaitTimeout": 120000
}
Troubleshooting
- Token expired? Regenerate with
oc whoami -t - Timeout errors? Increase
awaitTimeoutto 180000ms - Permission denied? Check service account RBAC in the target namespace
- Connection failed? Verify firewall allows Hub → OpenShift API
Updated about 13 hours ago
