Using a Route Service with Your App in Cloud Foundry

2 hours
  • 2 Learning Objectives

About this Hands-on Lab

In this hands-on lab, you are taking on the role of a DevOps Engineer. You have an app called _hello-world_ that is deployed out to Cloud Foundry, and Operations wants additional logging. You are to push out a logger app and configure it as a user-provided service. Once the service is created, you are to bind the route service to _hello-world_’s route.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create the Logger User-Provided Service
Bind the Logger to Hello-World

Additional Resources

Register for a Pivotal Cloud Foundry account.

Use the cf-cli to log in to your Pivotal Cloud Foundry account.

Clean up any lingering resources.

Located in /root is hello-world and logging-route-service.

Go to /root/hello-world and execute a cf push to bootstrap the environment.

After the environment is done being bootstrapped, go to /root/logging-route-service.

Push the logger app. Give it 512m for memory and disk_quota. Assign a random route.

Create a user-provided service from the logger app using the -r flag.

Execute cf apps to get the route for the hello-world app.

Bind the logger service instance to the route of hello-world.

Execute cf logs against the logger app.

Once complete, delete the app from Cloud Foundry.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!