Simple PHP script for checking all deployment configs in a namespace.
- Create a application within OpenShift:
oc new-app --name health-check <Repo name>
- Create a serviceaccount:
oc create sa health-check
- Grant permissions to serviceaccount:
oc policy -n $namespace view system:serviceaccount:$namespace:health-check
- Configure the DC of the application created in step 1 (GUI is recommended):
NAMESPACE
: Set to namespace to use.TOKEN
: Set to secret of the SA's token.API_URL
: Set to OpenShift API URL.
- Expose the application.