Quickstart
In this quickstart, you will deploy a sample Cloud Foundry app on an existing Kf cluster.
Push an application
Prerequisites
The following are required to complete this section:
The
kf
CLI installed and in your path.You have connected to the Kf Kubernetes cluster:
gcloud container clusters get-credentials CLUSTER_NAME \ --project=CLUSTER_PROJECT_ID \ --zone=CLUSTER_LOCATION
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.
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
Last modified November 18, 2024: Set version of php-buildpack to v4.6.23 to address git clone error in run-lifecycle task (#1081) (2ec6ee4)