Created
September 28, 2024 17:50
-
-
Save seifrajhi/e574938c51173ddd5465fe668e4f53ef to your computer and use it in GitHub Desktop.
Yaml template to create the cluster and node groups using eksctl utility
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: eksctl.io/v1alpha5 | |
kind: ClusterConfig | |
metadata: | |
name: tidb-eks-demo | |
region: eu-west-1 | |
addons: | |
- name: aws-ebs-csi-driver | |
nodeGroups: | |
- name: admin | |
desiredCapacity: 1 | |
privateNetworking: true | |
labels: | |
dedicated: admin | |
iam: | |
withAddonPolicies: | |
ebs: true | |
- name: tidb-1a | |
desiredCapacity: 1 | |
privateNetworking: true | |
availabilityZones: ["eu-west-1a"] | |
instanceType: c5.2xlarge | |
labels: | |
dedicated: tidb | |
taints: | |
dedicated: tidb:NoSchedule | |
iam: | |
withAddonPolicies: | |
ebs: true | |
- name: tidb-1b | |
desiredCapacity: 0 | |
privateNetworking: true | |
availabilityZones: ["eu-west-1b"] | |
instanceType: c5.2xlarge | |
labels: | |
dedicated: tidb | |
taints: | |
dedicated: tidb:NoSchedule | |
iam: | |
withAddonPolicies: | |
ebs: true | |
- name: tidb-1c | |
desiredCapacity: 1 | |
privateNetworking: true | |
availabilityZones: ["eu-west-1c"] | |
instanceType: c5.2xlarge | |
labels: | |
dedicated: tidb | |
taints: | |
dedicated: tidb:NoSchedule | |
iam: | |
withAddonPolicies: | |
ebs: true | |
- name: pd-1a | |
desiredCapacity: 1 | |
privateNetworking: true | |
availabilityZones: ["eu-west-1a"] | |
instanceType: c7g.xlarge | |
labels: | |
dedicated: pd | |
taints: | |
dedicated: pd:NoSchedule | |
iam: | |
withAddonPolicies: | |
ebs: true | |
- name: pd-1b | |
desiredCapacity: 1 | |
privateNetworking: true | |
availabilityZones: ["eu-west-1b"] | |
instanceType: c7g.xlarge | |
labels: | |
dedicated: pd | |
taints: | |
dedicated: pd:NoSchedule | |
iam: | |
withAddonPolicies: | |
ebs: true | |
- name: pd-1c | |
desiredCapacity: 1 | |
privateNetworking: true | |
availabilityZones: ["eu-west-1c"] | |
instanceType: c7g.xlarge | |
labels: | |
dedicated: pd | |
taints: | |
dedicated: pd:NoSchedule | |
iam: | |
withAddonPolicies: | |
ebs: true | |
- name: tikv-1a | |
desiredCapacity: 1 | |
privateNetworking: true | |
availabilityZones: ["eu-west-1a"] | |
instanceType: r5b.2xlarge | |
labels: | |
dedicated: tikv | |
taints: | |
dedicated: tikv:NoSchedule | |
iam: | |
withAddonPolicies: | |
ebs: true | |
- name: tikv-1b | |
desiredCapacity: 1 | |
privateNetworking: true | |
availabilityZones: ["eu-west-1b"] | |
instanceType: r5b.2xlarge | |
labels: | |
dedicated: tikv | |
taints: | |
dedicated: tikv:NoSchedule | |
iam: | |
withAddonPolicies: | |
ebs: true | |
- name: tikv-1c | |
desiredCapacity: 1 | |
privateNetworking: true | |
availabilityZones: ["eu-west-1c"] | |
instanceType: r5b.2xlarge | |
labels: | |
dedicated: tikv | |
taints: | |
dedicated: tikv:NoSchedule | |
iam: | |
withAddonPolicies: | |
ebs: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment