이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 3. Getting Started
3.1. Using the RH-SSO for OpenShift Image Streams and Application Templates 링크 복사링크가 클립보드에 복사되었습니다!
Red Hat JBoss Middleware for OpenShift images are pulled on demand from the Red Hat Registry: registry.access.redhat.com. To update to the latest RH-SSO for OpenShift images, run the following commands:
On your master host(s), ensure that you are logged in as a cluster administrator or a user with project administrator access to the global
openshiftproject.oc login -u system:admin
$ oc login -u system:adminCopy to Clipboard Copied! Toggle word wrap Toggle overflow Run the following commands to update the core set of RH-SSO 7.2 resources for OpenShift in the
openshiftproject:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the following command to install the RH-SSO 7.2 OpenShift image streams in the
openshiftproject:oc -n openshift import-image redhat-sso72-openshift:1.1
$ oc -n openshift import-image redhat-sso72-openshift:1.1Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2. Deploying the RH-SSO for OpenShift Image 링크 복사링크가 클립보드에 복사되었습니다!
3.2.1. Preparing the Deployment 링크 복사링크가 클립보드에 복사되었습니다!
Log in to the OpenShift CLI with a user that holds the cluster:admin role.
Create a new project:
oc new-project sso-app-demo
$ oc new-project sso-app-demoCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the
viewrole to thedefaultservice account. This enables the service account to view all the resources in the sso-app-demo namespace, which is necessary for managing the cluster.oc policy add-role-to-user view system:serviceaccount:$(oc project -q):default
$ oc policy add-role-to-user view system:serviceaccount:$(oc project -q):defaultCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2.2. Deploying the RH-SSO for OpenShift Image using Application Template 링크 복사링크가 클립보드에 복사되었습니다!
3.2.2.1. Deploying the Template via OpenShift CLI 링크 복사링크가 클립보드에 복사되었습니다!
List the available RH-SSO application templates:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Deploy the selected one:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2.2.2. Deploying the Template via OpenShift Web Console 링크 복사링크가 클립보드에 복사되었습니다!
Alternatively, perform the following steps to deploy the RH-SSO template via OpenShift web console:
- Log in to the OpenShift web console and select the sso-app-demo project space.
- Click Add to Project, then Browse Catalog to list the default image streams and templates.
- Use the Filter by Keyword search bar to limit the list to those that match sso. You may need to click Middleware, then Integration to show the desired application template.
- Select an RH-SSO application template. This example uses Red Hat Single Sign-On 7.2 (Ephemeral).
- Click Next in the Information step.
- From the Add to Project drop-down menu, select the sso-app-demo project space. Then click Next.
- Select Do not bind at this time radio button in the Binding step. Click Create to continue.
- In the Results step, click the Continue to the project overview link to verify the status of the deployment.
3.2.3. Accessing the Administrator Console of the RH-SSO Pod 링크 복사링크가 클립보드에 복사되었습니다!
After the template got deployed, identify the available routes:
oc get routes
$ oc get routes
| NAME | HOST/PORT | PATH | SERVICES | PORT | TERMINATION | WILDCARD |
|---|---|---|---|---|---|---|
| secure-sso | secure-sso-sso-app-demo.openshift.example.com | secure-sso | <all> | reencrypt | None | |
| sso | sso-sso-app-demo.openshift.example.com | sso | <all> | None |
and access the RH-SSO administrator console at:
- https://secure-sso-sso-app-demo.openshift.example.com/auth/admin
- http://sso-sso-app-demo.openshift.example.com/auth/admin
using the administrator account.