Kf Quickstart

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

Before you begin

Pushing an application

Prerequisites

The following are required to complete this section:

  1. A .kubeconfig targeting the Kf cluster.
  2. The kf CLI installed and in your path. See Install Kf for instructions.
  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.

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

    kf push test-app
  3. Get the application's URL.

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

Successful app push on Kf

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