- templateId: k8s-dedicated-template-v1 # template version string
  default: true
  supportedVersions:
    - "1.27"
    - "1.28"
    - "1.29"
    - "1.30"
    - "1.30.5-gke.1014003"
    - "1.31"
    - "1.32"
    - "1.33"
    - "1.34"
    - "1.35"
  tidbOperator:
    chartPath: /etc/helm/tidb-operator/tidb-operator-v1.7.0-alpha.13
    crdPaths:
      - /etc/helm/tidb-operator/advanced-statefulset-crd.v1.yaml
      - /etc/helm/tidb-operator/tidb-operator-v1.7.0-alpha.13.yaml
    releaseName: tidb-operator
    namespace: tidb-admin
    helmValues:
      features:
        - "AdvancedStatefulSet=true"
        - "VolumeModifying=true"
      operatorImage: gcr.io/pingcap-public/dbaas/tidb-operator:v1.7.0-alpha.13
      tidbBackupManagerImage: gcr.io/pingcap-public/dbaas/tidb-backup-manager:v1.7.0-alpha.13
      advancedStatefulset:
        resourceLock: "leases"
        create: true
        image: gcr.io/pingcap-public/dbaas/advanced-statefulset:v0.8.0
        resources:
          limits:
            cpu: 500m
            memory: 300Mi
          requests:
            cpu: 200m
            memory: 50Mi
      scheduler:
        create: false
      controllerManager:
        leaderResourceLock: "leases"
        resources:
          limits:
            cpu: "4"
            memory: 4Gi
          requests:
            cpu: 80m
            memory: 50Mi
  tidbOperatorV2:
    crdPaths:
      - /etc/helm/tidb-operator-v2/core.pingcap.com_clusters.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_pdgroups.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_pds.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_tikvgroups.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_tikvs.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_tidbgroups.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_tidbs.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_tiflashgroups.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_tiflashes.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_ticdcgroups.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_ticdcs.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_schedulergroups.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_schedulers.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_tsogroups.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_tsos.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_tiproxygroups.yaml
      - /etc/helm/tidb-operator-v2/core.pingcap.com_tiproxies.yaml
      - /etc/helm/tidb-operator-v2/br.pingcap.com_backups.yaml
      - /etc/helm/tidb-operator-v2/br.pingcap.com_restores.yaml
      - /etc/helm/tidb-operator-v2/br.pingcap.com_tibrs.yaml
      - /etc/helm/tidb-operator-v2/br.pingcap.com_tibrgcs.yaml
    releaseName: tidb-operator-v2
    namespace: tidb-admin
    helmValues:
      image:
        repository: gcr.io/pingcap-public/dbaas/tidb-operator
        tag: v2.0.0-beta.8
      args:
        - --backup-manager-image=gcr.io/pingcap-public/dbaas/tidb-backup-manager:v2.0.0-beta.8
      resources:
        limits:
          cpu: "2"
          memory: 2Gi
        requests:
          cpu: 80m
          memory: 50Mi
    chartPath: /etc/helm/tidb-operator-v2/
    crdVersion: v2.0.0-beta.8
  clusterProxy:
    chartPath: /etc/helm/proxy/cluster-proxy
    releaseName: proxy
    namespace: tidb-admin
    helmValues:
      replicaCount: 2
      podHostNetwork: true
      env:
        - name: AUTH0-AUDIENCE
          value: staging-proxy-service
        - name: AUTH0-DOMAIN
          value: tidb-staging.us.auth0.com
      image:
        repository: gcr.io/pingcap-gardener/dbaas/dev/cluster-proxy
        tag: 4f268003fb279554a1da92d2a26c845fafdc0032
      gotty:
        repository: gcr.io/pingcap-public/dbaas/gotty
        tag: "20211103"
      service:
        type: LoadBalancer
        loadBalancerSourceRanges:
          - "__CP9_PRIMARY_AWS_CIDR__"
      ingress:
        enabled: true
      resources:
        limits:
          cpu: 500m
          memory: 256Mi
        requests:
          cpu: 20m
          memory: 80Mi
      deployment:
        proxyArgs:
          enableDevMode: true
  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: gcr.io/pingcap-public/third-party/kong/kong
        tag: "3.6"
      ingressController:
        image:
          repository: gcr.io/pingcap-public/third-party/kong/kubernetes-ingress-controller
          tag: "3.1"
      replicaCount: 2
      admin:
        enabled: true
        http:
          enabled: true
        type: ClusterIP
      proxy:
        enabled: true
        type: LoadBalancer
        externalTrafficPolicy: Local
        loadBalancerSourceRanges:
          - "__CP9_PRIMARY_AWS_CIDR__"
  sliReporter:
    chartPath: /etc/helm/sli-reporter/sli-reporter
    releaseName: reporter
    namespace: tidb-admin
    helmValues:
      replicaCount: 1
      image:
        repository: gcr.io/pingcap-gardener/dbaas/dev/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
