Stay organized with collections
Save and categorize content based on your preferences.
To finalize the upgrade of your cluster and complete the migration to the
Knative serving fleet component, you must remove all the stale and unused
resources from your cluster.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 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\"}}'"]]