Last active
June 29, 2018 12:47
-
-
Save claudiajkang/fd2279f923cb991c9b8653cb6b658e1b to your computer and use it in GitHub Desktop.
AWS Gist
1. Add your AWS information
# https://github.com/kubernetes/minikube/blob/master/docs/insecure_registry.md#private-container-registries
$ minikube addons configure registry-creds
Do you want to enable AWS Elastic Container Registry? [y/n]: y
-- Enter AWS Access Key ID: # AWS Access Key ID
-- Enter AWS Secret Access Key: # Secret access key
-- (Optional) Enter AWS Session Token: #Optional
-- Enter AWS Region: # AWS Region
-- Enter 12 digit AWS Account ID (Comma separated list): # AWS Account ID (=private repository first 12 digit)
-- (Optional) Enter ARN of AWS role to assume: # Optional
Do you want to enable Google Container Registry? [y/n]: n
Do you want to enable Docker Registry? [y/n]: n
...
# must enable !!!!!!!!!!
$ minikube addons enable registry-creds
- Open the IAM console.
- In the navigation pane of the console, choose Users.
- Choose your IAM user name (not the check box).
- Choose the Security credentials tab and then choose Create access key.
- To see the new access key, choose Show. Your credentials will look something like this:
- Access key ID: AKIAIOSFODNN7EXAMPLE
- Secret access key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
- To download the key pair, choose Download .csv file. Store the keys in a secure location.
2. Check to setting minikube addons.
$ minikube addons list
- addon-manager: enabled
- coredns: disabled
- dashboard: enabled
- default-storageclass: enabled
- efk: disabled
- freshpod: disabled
- heapster: disabled
- ingress: disabled
- kube-dns: enabled
- metrics-server: disabled
- registry: disabled
- registry-creds: enabled
- storage-provisioner: enabled
3. etc.
-
registry-creds remove :
minikube addons disable registry-creds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://docs.aws.amazon.com/ko_kr/cli/latest/userguide/cli-chap-getting-started.html | |
# install | |
pip install awscli --upgrade --user | |
aws configure | |
# uninstall | |
pip uninstall awscli |
- ECS 콘솔 리포지토리 생성
- aws ecr get-login 명령을 붙여넣어 레지스트리에 대해 Docker 클라이언트를 인증
-
AWS Command Line Interface 설치
pip install awscli --upgrade --user
-
AWS CLI 구성
aws configure
region : ap-northeast-2
IAM 사용자에 대한 액세스 키 ID 및 보안 액세스 키가 필요 -
- 레지스트리 푸시 명령보기를 통해 순차적으로 설정.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment