All Products
Search
Document Center

Microservices Engine:Disable MSE microservice governance

Last Updated:Mar 11, 2026

If you no longer use the Microservices Engine (MSE) Microservice Governance Center, disable MSE microservice governance promptly to avoid affecting your applications. Applications that are already connected to MSE must be restarted after governance is disabled.

MSE provides four methods to disable or remove governance, each targeting a different scope. Pick the method that matches what you originally enabled.

Choose a method

MethodScopeMechanismWhen to use
Deactivate governance for a namespaceAll applications in a Kubernetes namespaceMSE consoleStop governance for an entire namespace at once
Disable governance for a single applicationOne Java applicationDeployment label (msePilotAutoEnable)Stop governance for one application without affecting the namespace
Uninstall the ack-onepilot componentEntire ACK clusterHelm release deletionFully remove the MSE agent injection mechanism from a cluster
Delete an application from MSEMSE console recordsConsole cleanupRemove application entries from the MSE console after governance is disabled
Important

Namespace-level deactivation and single-application disabling are independent. Deactivating governance for a namespace does not affect applications connected through the single-application connection type, and vice versa.

Prerequisites

Before you begin, ensure that you have:

  • A maintenance window scheduled for pod restarts -- applications already connected to MSE require a restart after governance is disabled

  • An understanding of the billing impact -- see Billing overview of microservice governance

Deactivate governance for a Kubernetes namespace

Deactivate governance at the namespace level to stop MSE governance for all applications in a Kubernetes namespace at once.

  1. Log on to the MSE Governance Center.

  2. In the left-side navigation pane, choose O&M Center. At the top of the page, select Kubernetes Clusters, and then click the name of the target cluster.

  3. In the Actions column of the target namespace, click Deactivate Microservice Governance.

  4. Restart all application pods in the namespace that were previously connected to MSE. Governance remains active on running pods until they restart.

What happens after deactivation:

ItemStatus
Namespace-level governanceDisabled for new and restarted pods
Running pods (not restarted)Governance remains active until pod restart
Single-application connectionsNot affected -- still active if previously enabled
Note

After namespace-level governance is deactivated, you can still connect individual applications in that namespace through the single-application connection type. To disable governance for those applications, see Disable governance for a single Java application.

Disable governance for a single Java application

Modify the deployment labels in the application's YAML configuration to disable governance for a specific Java application without affecting the rest of the namespace.

  1. Log on to the Container Service for Kubernetes (ACK) console.

  2. In the left-side navigation pane, click Clusters. Click the name of the cluster that contains your application.

  3. In the left-side navigation pane, choose Workloads > Deployments.

  4. In the upper-left corner of the Deployments page, select the target Namespace. In the Actions column of the target application, choose More > Edit YAML.

  5. In the Edit YAML dialog box, navigate to spec > Template > Metadata > labels. Delete the msePilotAutoEnable: "on" label or change its value to "off":

       labels:
         msePilotAutoEnable: "off"
  6. Click Update.

What happens after disabling:

ItemStatus
Target application governanceDisabled after pod restart
Other applications in the namespaceNot affected
Namespace-level governanceNot affected
The msePilotAutoEnable labelRemains in the YAML with value "off"

Uninstall the ack-onepilot component

The ack-onepilot component automatically injects MSE and Application Real-Time Monitoring Service (ARMS) Java agents into application pods. Uninstalling it stops all automatic agent injection across the cluster.

Important

After you uninstall ack-onepilot, pods in the cluster can no longer connect to MSE or ARMS automatically. Pods that are already connected must be restarted to fully disable governance.

  1. Log on to the ACK console.

  2. In the left-side navigation pane, click Clusters. Click the name of the cluster that you want to manage.

  3. In the left-side navigation pane, choose Applications > Helm.

  4. On the Helm page, find the ack-onepilot application and click Delete in the Actions column.

  5. In the Delete dialog box, click OK.

What happens after uninstalling:

ItemStatus
ack-onepilot Helm releaseRemoved from the cluster
New podsNo longer injected with MSE or ARMS agents
Running pods (already connected)Governance remains active until pod restart
MSE console application entriesRemain until you manually delete them

Delete a microservice application from MSE

After governance is disabled, remove the application entries from the MSE console to keep your workspace clean.

Important

Before you delete an application, go to its Node Details page and confirm that all nodes have disconnected. If you previously deleted ack-onepilot or disabled governance through labels, redeploy the application first to make sure it runs properly without the governance layer.

  1. Log on to the MSE console and select a region in the top navigation bar.

  2. In the left-side navigation pane, choose Microservices Governance > Application Governance.

  3. On the Application List page, hover over the target application card. Click Remove in the upper-right corner of the card.

    To remove multiple applications at once, click Batch Select at the bottom of the page, select the applications, and then click Batch Remove.

  4. In the Remove confirmation dialog box, click OK.

See also