Este contenido no está disponible en el idioma seleccionado.
Chapter 2. Get Started for Administrators
If you are an OpenShift administrator, you can prepare an OpenShift cluster for Fuse on OpenShift deployments by installing the Fuse on OpenShift images and templates as described here.
2.1. Configure Authentication to the Red Hat Container Registry Copiar enlaceEnlace copiado en el portapapeles!
You must configure authentication to Red Hat container registry before you can import and use the Red Hat Fuse OpenShift Image Streams. Follow instruction given below to configure the registration to container registry.
Log in to the OpenShift Server as an administrator, as follows:
oc login -u system:admin
oc login -u system:admin
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Log in to the OpenShift project where you will be installing the image streams. We recommend that you use the
openshift
project for the Fuse on OpenShift image streams.oc project openshift
oc project openshift
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create a docker-registry secret using either Red Hat Customer Portal account or Red Hat Developer Program account credentials.
oc create secret docker-registry imagestreamsecret \ --docker-server=registry.redhat.io \ --docker-username=CUSTOMER_PORTAL_USERNAME \ --docker-password=CUSTOMER_PORTAL_PASSWORD \ --docker-email=EMAIL_ADDRESS
oc create secret docker-registry imagestreamsecret \ --docker-server=registry.redhat.io \ --docker-username=CUSTOMER_PORTAL_USERNAME \ --docker-password=CUSTOMER_PORTAL_PASSWORD \ --docker-email=EMAIL_ADDRESS
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
You need to create a docker-registry secret in every new namespace where the image streams reside and which use registry.redhat.io.
If you do not wish to use your Red Hat account username and password to create the secret, it is recommended to create an authentication token using a registry service account.
For more information see:
2.2. Prepare the OpenShift Server Copiar enlaceEnlace copiado en el portapapeles!
When preparing the OpenShift Server, you must create a docker-registry secret before installing Fuse on OpenShift image streams. It is recommended to use openshift
namespace to create a docker-registry secret and to install Fuse on OpenShift image streams and templates. For more information, see Section 2.1, “Configure Authentication to the Red Hat Container Registry”
- Start the OpenShift Server.
Log in to the OpenShift Server as an administrator, as follows:
oc login -u system:admin
oc login -u system:admin
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the Fuse on OpenShift image streams. Enter the following commands at a command prompt:
BASEURL=https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.fuse-720018-redhat-00001 oc create -n openshift -f ${BASEURL}/fis-image-streams.json
BASEURL=https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.fuse-720018-redhat-00001 oc create -n openshift -f ${BASEURL}/fis-image-streams.json
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the quickstart templates. Enter the following commands at a command prompt:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the templates for Fuse Console (Hawtio). Enter the following commands at a command prompt:
oc create -n openshift -f https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.fuse-720018-redhat-00001/fis-console-cluster-template.json oc create -n openshift -f https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.fuse-720018-redhat-00001/fis-console-namespace-template.json
oc create -n openshift -f https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.fuse-720018-redhat-00001/fis-console-cluster-template.json oc create -n openshift -f https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.fuse-720018-redhat-00001/fis-console-namespace-template.json
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteFor information on deploying the Fuse Console, see Managing Fuse.
Install the Apicurito template. Enter the following command at a command prompt:
oc create -n openshift -f ${BASEURL}/fuse-apicurito.yml
oc create -n openshift -f ${BASEURL}/fuse-apicurito.yml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow (Optional) Run the following command to view the installed Fuse on OpenShift images and templates.
oc get template -n openshift
oc get template -n openshift
Copy to Clipboard Copied! Toggle word wrap Toggle overflow