Flagger
GitHub
latest
latest
  • Introduction
  • FAQ
  • Install
    • Flagger Install on Kubernetes
    • Flagger Install with Flux
    • Flagger Install on GKE Istio
    • Flagger Install on EKS App Mesh
    • Flagger Install on Alibaba ServiceMesh
  • Usage
    • How it works
    • Deployment Strategies
    • Metrics Analysis
    • Webhooks
    • Alerting
    • Monitoring
  • Tutorials
    • Istio Canary Deployments
    • Istio A/B Testing
    • Linkerd Canary Deployments
    • App Mesh Canary Deployments
    • Contour Canary Deployments
    • Gloo Canary Deployments
    • NGINX Canary Deployments
    • Skipper Canary Deployments
    • Traefik Canary Deployments
    • Apache APISIX Canary Deployments
    • Open Service Mesh Deployments
    • Kuma Canary Deployments
    • Gateway API Canary Deployments
    • Knative Canary Deployments
    • Blue/Green Deployments
    • Canary analysis with Prometheus Operator
    • Canary analysis with KEDA ScaledObjects
    • Zero downtime deployments
  • Dev
    • Development Guide
    • Release Guide
    • Upgrade Guide
Powered by GitBook
On this page
  • Prerequisites
  • Variables declaration
  • Enable Data-plane KubeAPI access in ASM
  • Enable Prometheus
  • Install Flagger
  • Deploy Flagger for Istio
  • Add data plane cluster to Alibaba Cloud Service Mesh (ASM)
  • Prometheus address
  • Deploy Flagger

Was this helpful?

  1. Install

Flagger Install on Alibaba ServiceMesh

PreviousFlagger Install on EKS App MeshNextHow it works

Last updated 2 years ago

Was this helpful?

This guide walks you through setting up Flagger on Alibaba ServiceMesh.

Prerequisites

  • Created an ACK() cluster instance.

  • Create an ASM() enterprise instance and add ACK cluster.

Variables declaration

  • $ACK_CONFIG: the kubeconfig file path of ACK, which be treated as$HOME/.kube/config in the rest of guide.

  • $MESH_CONFIG: the kubeconfig file path of ASM.

Enable Data-plane KubeAPI access in ASM

In the Alibaba Cloud Service Mesh (ASM) console, on the basic information page, make sure Data-plane KubeAPI access is enabled. When enabled, the Istio resources of the control plane can be managed through the Kubeconfig of the data plane cluster.

Enable Prometheus

In the Alibaba Cloud Service Mesh (ASM) console, click Settings to enable the collection of Prometheus monitoring metrics. You can use the self-built Prometheus monitoring, or you can use the Alibaba Cloud ARMS Prometheus monitoring plug-in that has joined the ACK cluster, and use ARMS Prometheus to collect monitoring indicators.

Install Flagger

Add Flagger Helm repository:

helm repo add flagger https://flagger.app

Install Flagger's Canary CRD:

kubectl apply -f https://raw.githubusercontent.com/fluxcd/flagger/v1.21.0/artifacts/flagger/crd.yaml

Deploy Flagger for Istio

Add data plane cluster to Alibaba Cloud Service Mesh (ASM)

In the Alibaba Cloud Service Mesh (ASM) console, click Cluster & Workload Management, select the Kubernetes cluster, select the target ACK cluster, and add it to ASM.

Prometheus address

Deploy Flagger

Replace the value of metricsServer with your Prometheus address.

helm upgrade -i flagger flagger/flagger \
--namespace=istio-system \
--set crd.create=false \
--set meshProvider=istio \
--set metricsServer=http://prometheus:9090

If you are using Alibaba Cloud Container Service for Kubernetes (ACK) ARMS Prometheus monitoring, replace {Region-ID} in the link below with your region ID, such as cn-hangzhou. {ACKID} is the ACK ID of the data plane cluster that you added to Alibaba Cloud Service Mesh (ASM). Visit the following links to query the public and intranet addresses monitored by ACK's ARMS Prometheus:

An example of an intranet address is as follows:

Alibabacloud Container Service for Kubernetes
Alibaba ServiceMesh
https://arms.console.aliyun.com/#/promDetail/{Region-ID}/{ACK-ID}/setting
http://{Region-ID}-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/{Prometheus-ID}/{u-id}/{ACK-ID}/{Region-ID}