Before you begin
- Complete the Install Kf guide.
Pushing an application
The following are required to complete this section:
kfCLI installed and in your path. See Install Kf CLI for instructions.
You have connected to the Kf cluster:
gcloud container clusters get-credentials CLUSTER_NAME \ --project=CLUSTER_PROJECT_ID \ --zone=CLUSTER_LOCATION
gitCLI installed and in your path.
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
Push the app.
kf push test-app
Get the application's URL.
Open the URL in your browser where you should see the app running.
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