Skip to content

Instantly share code, notes, and snippets.

@claudiajkang
Last active June 29, 2018 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claudiajkang/fd2279f923cb991c9b8653cb6b658e1b to your computer and use it in GitHub Desktop.
Save claudiajkang/fd2279f923cb991c9b8653cb6b658e1b to your computer and use it in GitHub Desktop.
AWS Gist

Add AWS Private Container Registries in minikube

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 

Configuring the AWS CLI

  1. Open the IAM console.
  2. In the navigation pane of the console, choose Users.
  3. Choose your IAM user name (not the check box).
  4. Choose the Security credentials tab and then choose Create access key.
  5. 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
  6. 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.

# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment