// Module included in the following assemblies:
//
// * cloud_experts_tutorials/cloud-experts-deploying-application/cloud-experts-deploying-application-deployment.adoc

:_mod-docs-content-type: PROCEDURE
[id="cloud-experts-deploying-application-deployment-backend-microservice_{context}"]
= Deploying the back-end microservice

[role="_abstract"]
The microservice serves internal web requests and returns a JSON object containing the current hostname and a randomly generated color string.

.Procedure
* Deploy the microservice by running the following command from your terminal:
+
[source,terminal]
----
$ oc apply -f https://raw.githubusercontent.com/openshift-cs/rosaworkshop/master/rosa-workshop/ostoy/yaml/ostoy-microservice-deployment.yaml
----
+
**Example output**
+
[source,terminal]
----
$ oc apply -f https://raw.githubusercontent.com/openshift-cs/rosaworkshop/master/rosa-workshop/ostoy/yaml/ostoy-microservice-deployment.yaml
deployment.apps/ostoy-microservice created
service/ostoy-microservice-svc created
----