apiVersion: cloud.pingcap.com/v1
kind: Cluster
metadata:
  labels:
    cloud.pingcap.com/provider-type: eks
    cloud.pingcap.com/reconciler: ${NAMESPACE}
  name: ${NAME}
  namespace: ${NAMESPACE}
spec:
  cluster:
    pd:
      instanceType: t3.medium
      replicas: 3
      storageSize: 10Gi
    tidb:
      instanceType: t3.medium
      replicas: 2
    tiflash:
      instanceType: t3.medium
      replicas: 1
      storageSize: 50Gi
    tikv:
      instanceType: t3.medium
      replicas: 3
      storageSize: 50Gi
  networkName: eks-network
  forProvider:
    apiVersion: eks.infra.pingcap.com/v1alpha1
    kind: EKSCluster
    # dev one used in infra-cd: arn:aws:acm-pca:us-west-2:***:certificate-authority/****
    componentPCAARN: ${componentPCAARN}
    security:
      # to create one:
      # aws kms create-key --tags TagKey=Vendor,TagValue=PingCAP --tags TagKey=Owner,TagValue=***
      masterKeyArn: ${masterKeyArn}
  sqlEndpoints:
    private:
      enabled: true
    public:
      enabled: true
      loadBalancerSourceRanges:
        - 0.0.0.0/0
