github说明
一、绑定IAM策略
1、下载IAM策略Json文件
cluster is in a China region:
curl -o iam-policy.json https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.5.1/docs/install/iam_policy_cn.json
2、创建策略
aws iam create-policy \
--policy-name AWSLoadBalancerControllerIAMPolicy \
--policy-document file://iam-policy.json
3、创建 IAM 角色和 Kubernetes ServiceAccount,与策略关联
eksctl create iamserviceaccount \
--cluster=eks-test \
--namespace=kube-system \
--name=aws-load-balancer-controller \
--attach-policy-arn=arn:aws:iam::7xxxxxxxx2:policy/AWSLoadBalancerControllerIAMPolicy \
--override-existing-serviceaccounts \
--region cn-north-1 \