Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page

Show all

Help Center/ Application Service Mesh/ FAQs/ Mesh Management/ How Do I Enable Namespace Injection for a Cluster?

How Do I Enable Namespace Injection for a Cluster?

Updated on 2023-07-03 GMT+08:00

When injecting a sidecar to the namespace of a cluster, if the namespace injection is not enabled in the cluster, perform the following steps:

  1. Connect to the cluster using kubectl.
  2. Run the kubectl get iop -nistio-system command to query iop resources.

    • If the following information is displayed, the iop resource exists. Go to 3.

    • If the following information is displayed, no iop resources exist. Go to 4.

  3. Run the kubectl edit iop -nistio-system data-plane command to modify the autoInject configuration item. In the preceding command, data-plane indicates the name of the iop resource queried in the previous step. Replace it with the actual value.

        global:
          defaultPodDisruptionBudget:
            enabled: true
          hub: 100.79.1.215:20202/asm
          logging:
            level: default:info
          meshID: test-payment
          multiCluster:
            clusterName: test-yy
          network: test-yy-network
          proxy:
            autoInject: enabled
          remotePilotAddress: 10.252.2.34
          tag: 1.8.6-r1-20220512225026

  4. Run the kubectl edit cm -nistio-system istio-sidecar-injector command to modify the istio-sidecar-injector configuration item.

    data:
      config: |-
        policy: enabled

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback