Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Pour finaliser la mise à niveau de votre cluster et terminer la migration vers le composant de parc Knative serving, vous devez supprimer toutes les ressources non actualisées et non utilisées de votre cluster.
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/03 (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/03 (UTC)."],[],[],null,["# Complete the Knative serving upgrade\n\nTo finalize the upgrade of your cluster and complete the migration to the\nKnative serving fleet component, you must remove all the stale and unused\nresources from your cluster.\n\nBefore you begin\n----------------\n\n| **Warning:** After performing the steps on this page, you can no longer rollback your changes.\n\n- You must first review and ensure that you meet the\n [requirements for upgrading](/kubernetes-engine/enterprise/knative-serving/docs/install/on-gcp/upgrade).\n\n- The commands on this page use the environment variables and migration script\n from the [upgrade preparation step](/kubernetes-engine/enterprise/knative-serving/docs/install/on-gcp/upgrade/prepare).\n\n- It is important that you perform each step of this process in the\n [specified order](/kubernetes-engine/enterprise/knative-serving/docs/install/on-gcp/upgrade#upgrading).\n\nOverview\n--------\n\nIn this step, the [migration script](/kubernetes-engine/enterprise/knative-serving/docs/install/on-gcp/upgrade/prepare) is used to perform\nthe following:\n\n- Enforce full control of your Knative serving resources by the the `appdevexperience-operator` operator.\n- Delete the bundle Istio and Knative serving GKE add-on.\n- Delete all helper configmaps.\n\nYou can then re-enable the \"scaling to zero\" feature.\n\nComplete the Knative serving upgrade\n------------------------------------\n\nTo complete your Knative serving upgrade and finalize the migration process:\n\n1. Run the following command to start the migration script:\n\n ./migration-addon.sh --command finalize\n\n2. In the terminal, the migration script prompts you to confirm that you want\n to proceed. Enter `y` to finalize the process.\n\n The prompts during the process this final step look similar to the following: \n\n In the process of cleaning up, the script performs the following:\n 1. enforcing Knative serving operator fully controls Knative serving resources.\u003cbr\u003e\n 2. deleting Istio slim installed by Knative serving GKE add-on\u003cbr\u003e\n 3. deleting helper configmaps\n Continue? [Y/n] y\u003cbr\u003e\n\n 1. enforcing Knative serving operator fully controls Knative serving resources.\n cloudrun.operator.run.cloud.google.com/cloud-run patched\n\n Waiting for Knative serving serving to be ready...\n Knative serving serving is ready.\n\n 2. Deleting Istio slim resources\n\n 3. Deleting helper configmaps\n\n Cleanup is done. The upgrade to new Knative serving completes! \u003cbr\u003e\n\n3. Run the following command to enable \"scaling to 0\":\n\n kubectl patch cm config-autoscaler -n knative-serving -p '{\"data\":{\"enable-scale-to-zero\": \"true\"}}'"]]