Ouvrez l'URL dans votre navigateur où doit s'exécuter l'application.
Nettoyer
Ces étapes devraient rétablir l'état de départ du cluster.
Supprimez l'application.
kfdeletetest-app
Supprimez l'espace.
kfdelete-spacetest-space
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[],[],null,["In this quickstart, you will deploy a sample Cloud Foundry app on an existing Kf cluster.\n\n\u003cbr /\u003e\n\nBefore you begin\n\n- Complete the [Kf install steps](/migrate/kf/docs/2.3/install) for Kf.\n\nPushing an application\n\nPrerequisites\n\nThe following are required to complete this section:\n\n1. A `.kubeconfig` targeting the Kf cluster.\n2. The `kf` CLI installed and in your path. See [Install Kf](#install_kf) for instructions.\n3. The `git` CLI installed and in your path.\n\nPrepare space\n\n1. Create new space:\n\n kf create-space test-space\n\n2. Target the space:\n\n kf target -s test-space\n\nPush the Cloud Foundry test app\n\n1. Clone the [test-app repo](https://github.com/cloudfoundry-samples/test-app).\n\n git clone https://github.com/cloudfoundry-samples/test-app go-test-app\n cd go-test-app\n\n2. Push the app.\n\n **Note:** It will take a few minutes for the build to complete. \n\n kf push test-app\n\n3. Get the application's URL.\n\n kf apps\n\n | **Note:** The app has set the random-route property.\n4. Open the URL in your browser where you should see the app running.\n\n[](/static/migrate/kf/docs/images/app-quickstart-success.png)\n\nClean up\n\nThese steps should return the cluster to the starting state.\n\n1. Delete the application.\n\n kf delete test-app\n\n2. Delete the Space.\n\n kf delete-space test-space"]]