All Products
Search
Document Center

Container Service for Kubernetes:GitOps HA mode

Last Updated:Aug 08, 2024

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.

Note
  • 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

Enable the GitOps HA mode

  1. Run the following command to enable the GitOps HA mode for the Fleet instance:

    aliyun adcp UpdateHubClusterFeature --ClusterId <YOUR-FLEET-ID> --ArgoCDEnabled true --ArgoCDHAEnabled true 
  2. Run the following command to check whether the HA mode is enabled:

    aliyun adcp DescribeHubClusterDetails --ClusterId <your-fleet-id> |grep -B3 -A2 HA

    If HAEnabled in the output displays true, the HA mode is enabled.

    "ACKOne": {
      "GitOps": {
        "Enabled": true,
        "HAEnabled": true
      }
    }

Disable the GitOps HA mode

  1. Run the following command to disable the GitOps HA mode for the Fleet instance:

    aliyun adcp UpdateHubClusterFeature --ClusterId <YOUR-FLEET-ID> --ArgoCDEnabled true --ArgoCDHAEnabled false 
  2. Delete 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.