Skip to content

Commit

Permalink
update iam policy spec for ebs-csi-driver in node group
Browse files Browse the repository at this point in the history
  • Loading branch information
xjiaqing committed Jan 15, 2024
1 parent c5877fd commit 3d3974d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
22 changes: 21 additions & 1 deletion en/deploy-on-aws-eks.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ The following `c5d.4xlarge` example shows how to configure StorageClass for the
dedicated: tikv
taints:
dedicated: tikv:NoSchedule
iam:
withAddonPolicies:
ebs: true
...
```

Expand Down Expand Up @@ -599,6 +602,9 @@ In the configuration file of eksctl (`cluster.yaml`), add the following two item
dedicated: tiflash
taints:
dedicated: tiflash:NoSchedule
iam:
withAddonPolicies:
ebs: true
- name: tiflash-1d
desiredCapacity: 1
privateNetworking: true
Expand All @@ -607,6 +613,9 @@ In the configuration file of eksctl (`cluster.yaml`), add the following two item
dedicated: tiflash
taints:
dedicated: tiflash:NoSchedule
iam:
withAddonPolicies:
ebs: true
- name: tiflash-1c
desiredCapacity: 1
privateNetworking: true
Expand All @@ -615,7 +624,9 @@ In the configuration file of eksctl (`cluster.yaml`), add the following two item
dedicated: tiflash
taints:
dedicated: tiflash:NoSchedule

iam:
withAddonPolicies:
ebs: true
- name: ticdc-1a
desiredCapacity: 1
privateNetworking: true
Expand All @@ -624,6 +635,9 @@ In the configuration file of eksctl (`cluster.yaml`), add the following two item
dedicated: ticdc
taints:
dedicated: ticdc:NoSchedule
iam:
withAddonPolicies:
ebs: true
- name: ticdc-1d
desiredCapacity: 1
privateNetworking: true
Expand All @@ -632,6 +646,9 @@ In the configuration file of eksctl (`cluster.yaml`), add the following two item
dedicated: ticdc
taints:
dedicated: ticdc:NoSchedule
iam:
withAddonPolicies:
ebs: true
- name: ticdc-1c
desiredCapacity: 1
privateNetworking: true
Expand All @@ -640,6 +657,9 @@ In the configuration file of eksctl (`cluster.yaml`), add the following two item
dedicated: ticdc
taints:
dedicated: ticdc:NoSchedule
iam:
withAddonPolicies:
ebs: true
```
Depending on the EKS cluster status, use different commands:
Expand Down
22 changes: 21 additions & 1 deletion zh/deploy-on-aws-eks.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ mountOptions:
dedicated: tikv
taints:
dedicated: tikv:NoSchedule
iam:
withAddonPolicies:
ebs: true
...
```

Expand Down Expand Up @@ -581,6 +584,9 @@ eksctl scale nodegroup --cluster ${clusterName} --name tikv-1d --nodes 2 --nodes
dedicated: tiflash
taints:
dedicated: tiflash:NoSchedule
iam:
withAddonPolicies:
ebs: true
- name: tiflash-1d
desiredCapacity: 1
privateNetworking: true
Expand All @@ -589,6 +595,9 @@ eksctl scale nodegroup --cluster ${clusterName} --name tikv-1d --nodes 2 --nodes
dedicated: tiflash
taints:
dedicated: tiflash:NoSchedule
iam:
withAddonPolicies:
ebs: true
- name: tiflash-1c
desiredCapacity: 1
privateNetworking: true
Expand All @@ -597,7 +606,9 @@ eksctl scale nodegroup --cluster ${clusterName} --name tikv-1d --nodes 2 --nodes
dedicated: tiflash
taints:
dedicated: tiflash:NoSchedule

iam:
withAddonPolicies:
ebs: true
- name: ticdc-1a
desiredCapacity: 1
privateNetworking: true
Expand All @@ -606,6 +617,9 @@ eksctl scale nodegroup --cluster ${clusterName} --name tikv-1d --nodes 2 --nodes
dedicated: ticdc
taints:
dedicated: ticdc:NoSchedule
iam:
withAddonPolicies:
ebs: true
- name: ticdc-1d
desiredCapacity: 1
privateNetworking: true
Expand All @@ -614,6 +628,9 @@ eksctl scale nodegroup --cluster ${clusterName} --name tikv-1d --nodes 2 --nodes
dedicated: ticdc
taints:
dedicated: ticdc:NoSchedule
iam:
withAddonPolicies:
ebs: true
- name: ticdc-1c
desiredCapacity: 1
privateNetworking: true
Expand All @@ -622,6 +639,9 @@ eksctl scale nodegroup --cluster ${clusterName} --name tikv-1d --nodes 2 --nodes
dedicated: ticdc
taints:
dedicated: ticdc:NoSchedule
iam:
withAddonPolicies:
ebs: true
```
具体命令根据 EKS 集群创建情况而定:
Expand Down

0 comments on commit 3d3974d

Please sign in to comment.