Guest User

Untitled

a guest
Jan 2nd, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. DOCKER_SERVER=$(aws ecr get-authorization-token --query 'authorizationData[].proxyEndpoint' --output text)
  2. DOCKER_PASSWORD=$(aws ecr get-authorization-token --query 'authorizationData[].authorizationToken' --output text | base64 -D | cut -d: -f2)
  3.  
  4. kubectl create secret docker-registry ecrcreds \
  5. --docker-server=$DOCKER_SERVER \
  6. --docker-username=AWS \
  7. --docker-password=$DOCKER_PASSWORD \
  8. --docker-email=none
Add Comment
Please, Sign In to add comment