# Provisioning into OpenShift

In addition to adding a new cluster type (as covered in the previous sections), the HPE Morpheus Enterprise OpenShift plugin also adds the "OpenShift" Instance Type to the provisioning wizard. Through this, new virtualized Instances can be provisioned to the OpenShift cluster. Use the following steps to provision a new virtual machine into the cluster.

1. Navigate to Provisioning > Instances
2. Click + ADD
3. Select OPENSHIFT and click NEXT
4. On the Group tab, select a Group and Cloud. These selections will be filtered to include only Groups which can access Clouds that contain OpenShift clusters
5. Still on the Group tab, provide a Name for the new Instance and click NEXT
6. On the Configure tab, set the following configurations:

   - Layout: The "Openshift VM" Layout is included by default. Additional Layouts can be created within the Blueprints section (Library > Blueprints > Layouts) by selecting the "Openshift" Layout technology and associating the Layout with the "Openshift" Instance Type. See the Blueprints section of this user manual for more information on building Library items
   - Plan: Plans of various sizes and levels of customizability can be created in Administration > Plans & Pricing. By default, a single Plan specifying 2 CPU cores and 4 GB memory is seeded when adding the plugin
   - Resource Pool: Select the desired OpenShift cluster
   - Volumes: Select the proper number and size volumes
   - Networks: Networks correspond to NetworkAttachedDefinitions (NADs) in OpenShift. This list includes all NADs and names them by "<namespace>/<NAD name>" to make it easier to select a network within the intended namespace (Project). Users may select multiple NADs while provisioning but they must be from the same namespace

     IMPORTANT

     The first network interface chosen as part of Instance deployment will be treated as the primary interface and is expected to be reachable from the HPE Morpheus Enterprise appliance.
   - Image: Select from all synced virtual images. Note that only custom user images are synced from OpenShift, we do not sync from the large library of default images that ship with OpenShift
   - Project: Select the proper namespace. Bear in mind it's currently up to the user to select a valid namespace based on the network selected. If you choose an invalid namespace for the chosen network, provisioning will fail. In the future, this select list may provide automatic filtering to prevent invalid configuration but, for now, the user must make a valid selection
7. Still on the Configure tab, other configurations common to many Instance Types can also be made. When finished, click NEXT
8. On the Automation tab, choose to run automation Tasks or associate Workflows with the new Instance. Other common automation configurations can also be made, such as scale or backup configurations. Click NEXT
9. On the Review tab, click COMPLETE

The new OpenShift VM will soon be running based on the configurations given. Its status can be monitored from the OpenShift cluster detail page discussed in the previous section or from the Instances list page.

NOTE

Instance/VM console access is only supported if the VM is available on the network and reachable by HPE Morpheus Enterprise over the SSH port for Linux or the RDP port for Windows.
