- templateId: k8s-dedicated-template-v1 # template version string
  default: true
  supportedVersions:
    - "1.34"
    - "1.34.3-aliyun.1"
    - "1.34.1-aliyun.1"
    - "1.36.2-aliyun.1"
  tidbOperatorV2:
    releaseName: tidb-operator-v2
    namespace: tidb-admin
    helmValues:
      image:
        repository: tidbcloud-dev-registry.ap-southeast-1.cr.aliyuncs.com/tidbcloud/tidb-operator
        tag: v2.2.0-alpha.8
      args:
        - --backup-manager-image=tidbcloud-dev-registry.ap-southeast-1.cr.aliyuncs.com/tidbcloud/tidb-backup-manager:v2.2.0-alpha.8
      resources:
        limits:
          cpu: "2"
          memory: 2Gi
        requests:
          cpu: 80m
          memory: 50Mi
    chartPath: /etc/helm/tidb-operator-v2/
    crdVersion: v2.2.0-alpha.8
  serviceProxy:
    chartPath: /etc/helm/service-proxy
    releaseName: service-proxy
    namespace: tidb-admin
    helmValues:
      replicaCount: 1
      image:
        repository: tidbcloud-dev-registry.ap-southeast-1.cr.aliyuncs.com/tidbcloud/service-proxy
        tag: 048ca7454d5860d5f55495e088f87d891f117230
      ingress:
        enabled: true
        paths:
          - path: /@/proxy/cluster/\d+/(pd|tibr|ticdc|dm)(/.*)?
      resources:
        limits:
          memory: 256Mi
        requests:
          cpu: 10m
          memory: 20Mi
  clusterGateway:
    namespace: tidb-admin
    chartPath: /etc/helm/kong
    crdPaths:
      - /etc/helm/kong/crds/custom-resource-definitions.yaml
      - /etc/helm/kong/crds/gateway-api-crd-standard-install.yaml
    helmValues:
      image:
        repository: docker.io/library/kong
        tag: "3.6"
      ingressController:
        image:
          repository: docker.io/kong/kubernetes-ingress-controller
          tag: "3.1"
      replicaCount: 2
      admin:
        enabled: true
        http:
          enabled: true
        type: ClusterIP
      proxy:
        enabled: true
        type: ClusterIP
  capacityPlanner:
    chartPath: /etc/helm/capacity-planner
    crdPaths:
      - /etc/helm/capacity-planner/crds/autoscaling.pingcap.com_autoscalers.yaml
    releaseName: capacity-planner
    namespace: tidb-admin
    helmValues:
      image:
        repository: tidbcloud-dev-registry.ap-southeast-1.cr.aliyuncs.com/tidbcloud/capacity-planner
        tag: a1fd5b14fbdefd6ae0da76469c3301b10b011428
  ngAutoScaler:
    chartPath: /etc/helm/ng-autoscaler
    releaseName: ng-autoscaler
    namespace: tidb-admin
    helmValues:
      replicaCount: 1
      autoScalerImage: tidbcloud-dev-registry.ap-southeast-1.cr.aliyuncs.com/tidbcloud/ng-autoscaler:main-47b0a45d3f84b8dcd5535b8060f908a6597ec27b
      resources:
        limits:
          cpu: 500m
          memory: 1Gi
        requests:
          cpu: 100m
          memory: 80Mi
  sliReporter:
    chartPath: /etc/helm/sli-reporter/sli-reporter
    releaseName: reporter
    namespace: tidb-admin
    helmValues:
      replicaCount: 1
      image:
        repository: tidbcloud-dev-registry.ap-southeast-1.cr.aliyuncs.com/tidbcloud/sli-reporter
        tag: 7cf836f815623bb318ae20559e97892cac0a2b27
      aws:
        region: us-west-2
        deliveryStreamName: sli-dev-metrics
        deliveryStreamRoleArn: arn:aws:iam::552185537300:role/sli-cross-account-role
      resources:
        limits:
          cpu: 500m
          memory: 1Gi
        requests:
          cpu: 100m
          memory: 80Mi
      podSecurityContext:
        fsGroup: 2000
      securityContext:
        runAsGroup: 2000
        runAsUser: 1000
        runAsNonRoot: true
        readOnlyRootFilesystem: true
        allowPrivilegeEscalation: false
        privileged: false
        capabilities:
          drop:
            - NET_RAW
