安装 Anthos Service Mesh

本页面介绍如何安装 Anthos Service Mesh。

选项 1:通过管理中心界面

导航到 Service Mesh 标签页并点击 Setup,在您的用户集群上安装 Anthos Service Mesh。然后,按照页面上的说明完成设置。

选项 2:通过 API

配置 ServiceMeshFeatureSpecServiceMeshBinding 并应用于集群。

kubectl apply -f <path to service mesh yaml> --kubeconfig=${ADMIN_OIDC_KUBECONFIG}

Service Mesh 配置示例:

apiVersion: managementcenter.anthos.cloud.google.com/v1alpha1
kind: ServiceMeshFeatureSpec
metadata:
  name: service-mesh-spec-default
  namespace: anthos-management-center
spec:
  version: 1.9.2-asm.1
---
apiVersion: managementcenter.anthos.cloud.google.com/v1alpha1
kind: ServiceMeshBinding
metadata:
  name: service-mesh-binding-sample
  namespace: anthos-management-center
spec:
  configs:
  - configRef:
      name: service-mesh-spec-default
      namespace: anthos-management-center
    placement:
      clusterIDs:
      - "<cluster-name>"