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

ParameterDescriptionRequiredExample Value
replicasNumber of pod replicasOptional1
clientMasterUrlOpenShift cluster API URLRequiredhttps://api.YOUR-CLUSTER.com
clientTokenOpenShift auth token (oc whoami -t)Requiredsha256~aaaaaaaaaaa-aaaaa
namespaceTarget namespaceRecommendedYOUR_NAMESPACE
awaitTimeoutReadiness timeout (ms)Recommended120000
commandCustom container commandOptional""
selectorPod selector labelsOptional
serviceUrlService exposure URLOptional""

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 awaitTimeout to 180000ms
  • Permission denied? Check service account RBAC in the target namespace
  • Connection failed? Verify firewall allows Hub → OpenShift API