aws eks (kubernetes)

aws cli 설치

curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /

AWS 액세스 키 생성

setup command line

aws configure

생성한 키와 내용을 넣는다.

~/.aws/에 파일이 생성된다

확인

aws ec2 run-instances

eksctl 설치

brew install aws-iam-authenticator
brew tap weaveworks/tap
brew install weaveworks/tap/eksctl

kubernetes cluster 생성

eksctl create cluster \
--name cluster-1 \
--version 1.18 \
--region us-west-2 \
--nodegroup-name c1-nodes \
--node-type t3.medium \
--nodes 2
  • type
    • t3.nano
    • t3.micro
    • t3.small
    • t3.medium
    • t3.large

생성 확인

eksctl get cluster

delete eks

eksctl delete cluster --name cluster-1 --wait
teamsmiley's profile image

teamsmiley

2020-11-22 00:00

Read more posts by this author