Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Abilitazione e disabilitazione del controller del servizio di canonicalizzazione
Nota: i servizi canonici sono supportati automaticamente
in Cloud Service Mesh versione 1.6.8 e successive.
Il controller del servizio di canonicalizzazione raggruppa i workload appartenenti allo stesso servizio logico ed è necessario per la piena funzionalità della dashboard Servizi nella Google Cloud console.
Tutte le installazioni di Cloud Service Mesh gestite e le installazioni in cluster con asmcli dalla versione 1.25 di cui è stato eseguito il provisioning con il controller di servizio Canonical gestito. Il controller del servizio di canonicalizzazione in cluster è stato ritirato e non riceverà più aggiornamenti. Anche se i deployment esistenti del controller in cluster continueranno a funzionare, ti consigliamo vivamente di eseguire la migrazione a Canonical Service Controller gestito per garantire la compatibilità con le release future, l'accesso alle funzionalità più recenti e il supporto continuo.
Per determinare se il controller del servizio di canonicalizzazione all'interno del cluster è attivo sul tuo cluster:
kubectlgetservices-nasm-system
Disattivare il controller del servizio di canonicalizzazione all'interno del cluster
Per gli implementazioni dei controller in cluster esistenti, devi eseguire la migrazione al controller del servizio di canonicalizzazione gestito. Segui la
guida alla migrazione.
Attivare il controller del servizio di canonicalizzazione gestito
Se hai installato Cloud Service Mesh gestito, il controller del servizio di canonicalizzazione gestito è stato installato per impostazione predefinita. Inoltre, per tutte le installazioni di Cloud Service Mesh nel cluster con asmcli dalla versione 1.25 verrà eseguito il provisioning con il controller di servizio Canonical gestito.
Assicurati di eseguire il controller di servizio Canonical gestito eseguendo il seguente comando:
Sostituisci FLEET_PROJECT_ID con l'ID del tuo progetto Fleet Host. In genere,
FLEET_PROJECT_ID ha lo stesso nome del progetto.
Se la descrizione indica che i servizi canonici sono stati riconciliati correttamente, il controller del servizio canonico gestito funziona come previsto. Non sono necessarie ulteriori azioni.
projects/<your project number>/locations/<location>/memberships/<membership-name>:
code: OK
description: |-
Revision(s) ready for use: asm-managed.
All Canonical Services have been reconciled successfully.
servicemeshFeatureState: {}
updateTime: '2021-11-16T21:10:36.289467777Z'
Se nella descrizione è indicato che il controller di servizio canonico gestito sta cedendo il controllo al controller in cluster, segui la guida alla migrazione.
projects/<your project number>/locations/<location>/memberships/<membership-name>:
code: OK
description: |-
Revision(s) ready for use: istiod-asm-173-6.
The Managed Canonical Service Controller is yielding to the in-cluster controller. See https://cloud.google.com/service-mesh/docs/canonical-service-controller-enable-and-disable#disable-in-cluster-service-controller for instructions on removing the in-cluster controller.
servicemeshFeatureState: {}
updateTime: '2021-11-16T21:05:43.286828851Z'
lifecycleState: ENABLED
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[],[],null,["Enabling and disabling the Canonical Service controller\n\n\n**Note:** Canonical Services are supported automatically in Cloud Service Mesh version 1.6.8 and higher.\n\nThe Canonical Service controller groups workloads belonging to the same logical\nservice and is required for the full functionality of the Services dashboard\nin the Google Cloud console.\n\nAll managed Cloud Service Mesh installations and in-cluster installations\nwith asmcli from version 1.25 provisioned with the managed Canonical Service\ncontroller. The in-cluster Canonical Service Controller has been deprecated and\nwill no longer receive updates. While existing deployments of in-cluster\ncontroller will continue to operate, we strongly recommend migrating to the\nmanaged Canonical Service Controller to ensure compatibility with future\nreleases, access to the latest features, and continued support.\n\nTo determine if the in-cluster Canonical Service controller is enabled on your\ncluster: \n\n kubectl get services -n asm-system\n\nDisable the in-cluster Canonical Service controller\n\nFor existing in-cluster controller deployments, you should migrate to the managed\nCanonical Service controller. Follow the\n[migration guide](/service-mesh/docs/canonical-service-migrate-from-in-cluster-controller).\n\nEnable the Managed Canonical Service Controller\n\nIf you installed managed Cloud Service Mesh, then the Managed Canonical\nService Controller was installed by default. Also, all the in-cluster\nCloud Service Mesh installations with asmcli from version 1.25 will be\nprovisioned with the managed Canonical Service controller.\n\nEnsure you are running the Managed Canonical Service Controller by running\nthe following command:\n\nReplace FLEET_PROJECT_ID with the ID of your Fleet Host project. Generally,\nthe FLEET_PROJECT_ID has the same name as the project. \n\n gcloud beta container hub mesh describe --project FLEET_PROJECT_ID\n\n1. If the description states that the Canonical Services are reconciled\n successfully, then Manged Canonical Service Controller is operating as\n expected. No further action is required.\n\n projects/\u003cyour project number\u003e/locations/\u003clocation\u003e/memberships/\u003cmembership-name\u003e:\n code: OK\n description: |-\n Revision(s) ready for use: asm-managed.\n All Canonical Services have been reconciled successfully.\n servicemeshFeatureState: {}\n updateTime: '2021-11-16T21:10:36.289467777Z'\n\n2. If the description states that Managed Canonical Service Controller is\n yielding to the in-cluster controller, follow the [migration guide](/service-mesh/docs/canonical-service-migrate-from-in-cluster-controller).\n\n projects/\u003cyour project number\u003e/locations/\u003clocation\u003e/memberships/\u003cmembership-name\u003e:\n code: OK\n description: |-\n Revision(s) ready for use: istiod-asm-173-6.\n The Managed Canonical Service Controller is yielding to the in-cluster controller. See https://cloud.google.com/service-mesh/docs/canonical-service-controller-enable-and-disable#disable-in-cluster-service-controller for instructions on removing the in-cluster controller.\n servicemeshFeatureState: {}\n updateTime: '2021-11-16T21:05:43.286828851Z'\n lifecycleState: ENABLED\n\n3. For any other issues, refer to [Resolve Managed Canonical Service Controller issues](/service-mesh/docs/troubleshooting/troubleshoot-canonical-service#resolve-managed-canonical-controller-issues) for\n troubleshooting guidance.\n\nWhat's next\n\nLearn about:\n\n- [Canonical Services](/service-mesh/docs/canonical-service)\n- [Best practices in Canonical Services](/service-mesh/docs/canonical-service-best-practices)\n- [Define a Canonical Service](/service-mesh/docs/define-canonical-service)\n- [Resolving Canonical Service issues](/service-mesh/docs/troubleshooting/troubleshoot-canonical-service)"]]