Adopt the Dashboard service
To adopt the Dashboard service (horizon), you patch an existing OpenStackControlPlane custom resource (CR) that has the Dashboard service disabled. The patch starts the service with the configuration parameters that are provided by the Red Hat OpenStack Platform environment.
Before you begin
- You adopted Memcached. For more information, see Deploying back-end services.
- You adopted the Identity service (keystone). For more information, see Adopting the Identity service.
Procedure
Patch the
OpenStackControlPlane CR to deploy the Dashboard service:
$ oc patch openstackcontrolplane openstack --type=merge --patch '
spec:
horizon:
enabled: true
apiOverride:
route: {}
template:
memcachedInstance: memcached
secret: osp-secret
'
Results
- Verify that the Dashboard service instance is successfully deployed and ready:
$ oc get horizon - Confirm that the Dashboard service is reachable and returns a
200status code:PUBLIC_URL=$(oc get horizon horizon -o jsonpath='{.status.endpoint}') curl --silent --output /dev/stderr --head --write-out "%{http_code}" "$PUBLIC_URL/dashboard/auth/login/?next=/dashboard/" -k | grep 200