1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/learning-deploying-application-deployment-backend-microservice.adoc

26 lines
976 B
Plaintext

// Module included in the following assemblies:
//
// * rosa_learning/deploying_application_workshop/learning-deploying-application-deployment.adoc
:_mod-docs-content-type: PROCEDURE
[id="learning-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:
+
[source,terminal]
----
$ oc apply -f https://raw.githubusercontent.com/openshift-cs/rosaworkshop/master/rosa-workshop/ostoy/yaml/ostoy-microservice-deployment.yaml
----
+
*For example*:
+
[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
----