0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

EKS 初期化関連コマンド諸々

Last updated at Posted at 2024-08-16
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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?