EKS_CLUSTER=eks-cluster
AWS_REGION=ap-northeast-1
AWS_ACCOUNT_ID=123456789012
# kube config の設定更新
aws eks update-kubeconfig --name $EKS_CLUSTER --region $AWS_REGION
# クラスターのコンソールアクセス権限付与
eksctl create iamidentitymapping --cluster $EKS_CLUSTER --region=$AWS_REGION \
--account $AWS_ACCOUNT_ID --no-duplicate-arns
# eks fargate 使う時、coredns の設定更新&再起動
kubectl patch deployment coredns -n kube-system --type json \
-p='[{"op": "remove", "path": "/spec/template/metadata/annotations/eks.amazonaws.com~1compute-type"}]'
kubectl rollout restart -n kube-system deployment coredns
# aws-auth configmap の確認
eksctl get iamidentitymapping --cluster $EKS_CLUSTER --region=$AWS_REGION
# aws-auth の編集
kubectl edit -n kube-system configmap/aws-auth
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme