Skip to content

Part 2

In this section, you will create a Service Profile in Rafay's PaaS Studio based on the previously created environment template. The Service Profile can then be used by end users to deploy instances of the custom application as they need. The end users will use the Rafay Developer Hub to deploy and manage the custom applications via an App Store type user experience.

Info

In this exercise, we will use a single user account to perform both administrative and end user actions. In real life, the administrative and end users would be different.


Step 1: Create Service Profile

In this step, you will use the PaaS Studio to create a Service Profile. The service profile will be used to execute the previously create environment template in a self service manner.

  • In the console, navigate to Home -> PaaS Studio
  • Click Service Profiles in the left hand tree
  • Select your project
  • Click New Service Profile
  • Enter a name for the profile
  • Select the previously created environment template
  • Select the template version
  • Select Custom Services for Service Type
  • Select Yes for Will compute be auto-created?
  • Click Save & Continue

Service Profile

  • Under Input Settings, uncheck the Override checkbox for all inputs other than the Replica Count variable
  • Enter the name of an existing managed cluster within the project into the value field of the Host Cluster Name variable
  • Under Output Settings, click Add Output
  • Enter Replica_Count for the Name and Replica Count for the Label
  • Click Save Changes

Info

The Replica_Count name is pulled from the JSON output of the shell script executed within the previously created Workflow Handler.

Service Profile


Step 2: Create Workspace

In this step, you will use the Developer Hub to create a Workspace. A Workspace is a logical isolation boundary where instances from available profiles can be created.

  • Navigate to Home -> Developer Hub
  • Select your project
  • Click Workspaces in the left hand tree
  • Click New Workspace
  • Enter a name for the workspace
  • Click Save

Workspace


Step 3: Deploy Custom Service

In this step, you will now use the previously created Service Profile and create a service instance within the workspace.

  • Navigate to Home -> Developer Hub
  • Select your project
  • Click Custom Services in the left hand tree
  • Click New Custom Services
  • Click Select on the previously created service card
  • Enter a name for the service instance
  • Select the previously created workspace
  • Enter a value for the Replica Count variable
  • Click Deploy

Instance

The instance will deploy onto the cluster that was defined within the Service Profile. It will take ~2 minutes to deploy.

Once the instance is deployed, it will output the Replica Count to the user as confirmation of what was set within the input.

Instance


Recap

In this part, you used Rafay's PaaS Studio to create a service profile that that could be consumed by self service users within Rafay's Developer Hub. From the Developer Hub, you deployed a self service instance of the custom service profile that was deployed from the underlying environment template.