In this quickstart, you will deploy a sample Cloud Foundry app on an existing Kf cluster.

<br />

## Before you begin

Complete the [Install Kf](https://docs.cloud.google.com/migrate/kf/docs/2.9/install) guide.

## Push an application

### Prerequisites

The following are required to complete this section:

1. The `kf` CLI installed and in your path. See [Install Kf CLI](https://docs.cloud.google.com/migrate/kf/docs/2.9/install-cli) for instructions.
2. You have connected to the Kf cluster:

   ```
   gcloud container clusters get-credentials CLUSTER_NAME \
     --project=CLUSTER_PROJECT_ID \
     --zone=CLUSTER_LOCATION
   ```
3. The `git` CLI installed and in your path.

### Prepare space

1. Create new space:

       kf create-space test-space

2. Target the space:

       kf target -s test-space

### Push the Cloud Foundry test app

1. Clone the [test-app repo](https://github.com/cloudfoundry-samples/test-app).

       git clone https://github.com/cloudfoundry-samples/test-app go-test-app
       cd go-test-app

2. Push the app.

   > [!NOTE]
   > **Note:** It will take a few minutes for the build to complete.

       kf push test-app

3. Get the application's URL.

       kf apps

   > [!NOTE]
   > **Note:** The app has set the random-route property.

4. Open the URL in your browser where you should see the app running.

   [![Successful app push on Kf](https://docs.cloud.google.com/migrate/kf/docs/images/app-quickstart-success.png)](https://docs.cloud.google.com/static/migrate/kf/docs/images/app-quickstart-success.png)

## Clean up

These steps should return the cluster to the starting state.

1. Delete the application.

       kf delete test-app

2. Delete the Space.

       kf delete-space test-space