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. Prepare the OpenShift Server Copy linkLink copied to clipboard!
- Start the OpenShift Server.
Log in to the OpenShift Server as an administrator, as follows:
oc login -u system:adminInstall the FIS image streams. Enter the following commands at a command prompt:
BASEURL=https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.fuse-000064-redhat-4 oc create -n openshift -f ${BASEURL}/fis-image-streams.json oc replace -n openshift -f ${BASEURL}/fis-image-streams.jsonNoteIt is normal to see error messages saying some image streams already exist while invoking the create command. The oc client does not have a command to create or replace in a single action.
Install the FIS templates. Enter the following commands at a command prompt:
for template in eap-camel-amq-template.json \ eap-camel-cdi-template.json \ eap-camel-cxf-jaxrs-template.json \ eap-camel-cxf-jaxws-template.json \ eap-camel-jpa-template.json \ karaf-camel-log-template.json \ karaf-camel-rest-sql-template.json \ karaf-cxf-rest-template.json \ spring-boot-camel-amq-template.json \ spring-boot-camel-config-template.json \ spring-boot-camel-drools-template.json \ spring-boot-camel-infinispan-template.json \ spring-boot-camel-rest-sql-template.json \ spring-boot-camel-teiid-template.json \ spring-boot-camel-template.json \ spring-boot-camel-xml-template.json \ spring-boot-cxf-jaxrs-template.json \ spring-boot-cxf-jaxws-template.json ; do oc create -n openshift -f \ https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.fuse-000064-redhat-4/quickstarts/${template} oc replace -n openshift -f \ https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.fuse-000064-redhat-4/quickstarts/${template} done