This needs to be done in case the installer is stuck at "template service broker" role for some reason.
-
Run the command
oc get secret/templateservicebroker-client -n openshift-template-service-broker -o yaml
and copy the value ofservice-ca.crt
somewhere -
Create a cluster service broker yaml file (replace SECRET_KEY_VALUE with the value retrieved from
service-ca.crt
):
apiVersion: servicecatalog.k8s.io/v1beta1
kind: ClusterServiceBroker
metadata:
name: template-service-broker
spec:
relistBehavior: Duration
relistRequests: 0
url: https://apiserver.openshift-template-service-broker.svc:443/brokers/template.openshift.io
caBundle: SECRET_KEY_VALUE
authInfo:
bearer:
secretRef:
name: templateservicebroker-client
namespace: openshift-template-service-broker
- Run
oc get clusterservicebroker
to check the status oftemplate-service-broker
until it is ready (or check its status by adding-o yaml
in case it has a different status other than ready) - an empty status means the broker is still being provisioned.