Home / Platform management / Clusters / Cluster Configuration Management (Alpha) / Custom Sync Ignore Configuration Template

Custom Sync Ignore Configuration Template

This feature is used to create GitOps applications and allows selecting a custom template from the Synchronization Ignore Configuration template list to implement ignore configuration.

Procedure of operation

  1. In the left navigation bar, click Clusters > Management of resources.

  2. Switch to the global cluster and click on Create Resource Object.

  3. Write the following configuration information into a YAML file.

    apiVersion: gitops.app.alauda.io/v1alpha1
    kind: GitOpsIgnoreDifferences
    metadata:
      name: hpa
      namespace: kube-public
    displayName:
      zh: 水平伸缩(HPA)场景忽略配置
      en: Ignore configurations in Horizontal Pod Autoscaling (HPA) scenarios
    description:
      zh: 忽略部署和有状态副本集资源对象的副本数字段,由水平伸缩控制器根据metrics动态设置副本数。
      en: The replica count fields in Deployment and StatefulSet resources will be ignored. The number of replicas will be dynamically adjusted by the HPA controller based on monitoring metrics.
    ignoreDifferences:
    - group: apps
     jsonPointers:
        - /spec/replicas
    kind: Deployment
    - group: apps
    jsonPointers:
        - /spec/replicas
    kind: StatefulSet

    Field Description: