Before you begin
- Complete the Kf install steps for Kf.
Pushing an application
Prerequisites
The following are required to complete this section:
- A
.kubeconfig
targeting the Kf cluster. - The
kf
CLI installed and in your path. See Install Kf for instructions. - The
git
CLI installed and in your path.
Prepare space
Create new space:
kf create-space test-space
Target the space:
kf target -s test-space
Push the Cloud Foundry test app
Clone the test-app repo.
git clone https://github.com/cloudfoundry-samples/test-app go-test-app
cd go-test-app
Push the app.
kf push test-app
Get the application's URL.
kf apps
Open the URL in your browser where you should see the app running.
![Successful app push on Kf](https://cloud.google.com/migrate/kf/docs/images/app-quickstart-success.png)
Clean up
These steps should return the cluster to the starting state.
Delete the application.
kf delete test-app
Delete the Space.
kf delete-space test-space