Distribute Cloud Container Platform for Kubernetes (ACK One) GitOps allows you to run Argo CD in high availability (HA) mode. In the default mode, only one Deployment is deployed. In HA mode, four Deployments are deployed, including two Deployments for argocd-server. This guarantees resource supply for Argo CD components and fine-tunes the component parameters. This topic describes how to use the GitOps HA mode.
If you have more than 20 associated clusters or more than 200 applicatioins, we recommend that you use the GitOps HA mode to release applications.
HA mode is suitable for scenarios with up to 2,000 applications. If performance issues arise when you have more than 2,000 applicatioins, submit a ticket to contact the container service team. You can also join the DingTalk group 35688562 for feedback.
Billing
In the default mode of GitOps, fees are incurred by an elastic container instance with 2 vCPUs and 4 GB of memory. For more information, see Billing overview.
In the HA mode of GitOps, fees are incurred by four elastic container instances each of which has 2 vCPUs and 4 GB of memory, one elastic container instance with 4 vCPUs and 8 GB of memory, and Alibaba Cloud DNS PrivateZone. For more information, see Billing overview and Pricing.
Prerequisites
The Fleet management feature is enabled. For more information, see Enable multi-cluster management.
GitOps is enabled for your ACK One Fleet instance. For more information, see Enable GitOps for the Fleet instance. GitOps is enabled for ACK One by default.
The AliyunAdcpServerlessKubernetesRole role is assigned to your account in the ACK One console.
ImportantIf your account is a RAM user, you must use an Alibaba Cloud account to grant the GerRole permission to the RAM user or attach the AliyunRAMReadOnlyAccess policy to the RAM user. Otherwise, You cannot use GitOps in the console.
Alibaba Cloud CLI 3.0.172 or later is installed and credentials are configured.
Enable the GitOps HA mode
Run the following command to enable the GitOps HA mode for the Fleet instance:
aliyun adcp UpdateHubClusterFeature --ClusterId <YOUR-FLEET-ID> --ArgoCDEnabled true --ArgoCDHAEnabled trueRun the following command to check whether the HA mode is enabled:
aliyun adcp DescribeHubClusterDetails --ClusterId <your-fleet-id> |grep -B3 -A2 HAIf
HAEnabledin the output displaystrue, the HA mode is enabled."ACKOne": { "GitOps": { "Enabled": true, "HAEnabled": true } }
Disable the GitOps HA mode
Run the following command to disable the GitOps HA mode for the Fleet instance:
aliyun adcp UpdateHubClusterFeature --ClusterId <YOUR-FLEET-ID> --ArgoCDEnabled true --ArgoCDHAEnabled falseDelete the corresponding DNS records.
Log on to the Alibaba Cloud DNS PrivateZone console. In the user defined zone list on the Private DNS (PrivateZone) page, find DNS records in the
svc.cluster.local.<fleet-id>format and delete DNS records that end with.argocd.