- templateId: k8s-dedicated-template-v1 # template version string
  default: true
  supportedVersions:
    - "1.28"
    - "1.29"
    - "1.30"
    - "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:
        create: true
        resourceLock: "leases"
        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:
    chartPath: /etc/helm/tidb-operator-v2/
    crdVersion: v2.0.0-beta.9
    releaseName: tidb-operator-v2
    namespace: tidb-admin
    helmValues:
      image:
        repository: gcr.io/pingcap-public/dbaas/tidb-operator
        tag: v2.0.0-beta.9
      args:
        - --backup-manager-image=gcr.io/pingcap-public/dbaas/tidb-backup-manager:v2.0.0-beta.9
      resources:
        limits:
          cpu: "2"
          memory: 2Gi
        requests:
          cpu: 80m
          memory: 50Mi
  clusterProxy:
    chartPath: /etc/helm/proxy/cluster-proxy
    releaseName: proxy
    namespace: tidb-admin
    helmValues:
      replicaCount: 2
      podHostNetwork: true
      env:
        - name: AUTH0-AUDIENCE
          value: TMPL_AUTH0_AUDIENCE
        - name: AUTH0-DOMAIN
          value: TMPL_AUTH0_DOMAIN
      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:
          - "54.148.240.60/32"
          - "54.71.2.116/32"
          - "52.13.110.238/32"
          - "44.231.198.187/32"
          - "54.188.254.195/32"
          - "34.223.194.9/32"
          - "34.94.13.171/32"
          - "34.94.126.10/32"
          - "35.83.225.251/32"
          - "35.247.81.79/32" # dev-seed-us-west1-nat-e41f233
          - "34.82.198.113/32" # dev-seed-us-west1-nat-e41f233
        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
        annotations:
          service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: tags
          service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip
          service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
          service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: preserve_client_ip.enabled=true
          service.beta.kubernetes.io/aws-load-balancer-type: external
        externalTrafficPolicy: Local
        loadBalancerSourceRanges:
          - "54.148.240.60/32"
          - "54.71.2.116/32"
          - "52.13.110.238/32"
          - "44.231.198.187/32"
          - "54.188.254.195/32"
          - "34.223.194.9/32"
          - "35.247.81.79/32"
          - "34.82.198.113/32"
          - "35.83.225.251/32"
  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
