1. install jq (Json Parsor)
- sudo apt install -y jq
# check
jq
2. install docker ( https://docs.aws.amazon.com/ko_kr/AmazonECS/latest/developerguide/docker-basics.html)
- sudo yum update -y
- sudo amazon-linux-extras install docker
- (start docker) sudo service docker start
- sudo usermod -a -G docker ec2-user
- sudo reboot
- docker version
3. install docker-compose
- sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- docker-compose version
4. Install kops
wget -O kops https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-linux-amd64
chmod +x ./kops
sudo mv ./kops /usr/local/bin/
5. Install kubectl
wget -O kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
6. IAM control Option
- Please assgin to the user for
AmazonEC2FullAccess
AmazonRoute53FullAccess
AmazonS3FullAccess
IAMFullAccess
AmazonVPCFullAccess
7. install aws cli
sudo yum update
sudo yum install -y python-pip
pip install awscli
8. Setup your configuration
aws configure
AWS Access Key ID [None]:
AWS Secret Access Key [None]:
Default region name [None]: ap-northeast-2
Default output format [None]:
- aws configuration test
aws ec2 describe-instances
aws iam list-users
aws s3 ls
9. test command
- kops
- kubectl