Wednesday, August 7, 2019

Install Kubernetes using minikube/aws

minikube
kubectl
(aws cli)https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html#install-msi-on-windows

./minukube start
./minikube status
./minikube dashboard

docker-machine ls

compute --> ECR (Elastic ocntainer registry--to store images of docker)
create a reppo and follow view push commands(on git bash) to upload images.


create iam user(identity access management) to access aws.
and also install aws cli.

goto services-->security,identity & compliance-->iam
click on users-->add user-->access type(programamtic,console)-->after next,attach existing policies tab (administratoraccess check it) and click next-->skip keys and next-->create user

copy access key id,secret access key

aws configure --> provide these details.

--
docker-machine start m001
docker-mahine ls
docker-machine provision m01
docker-machine ls
docker-machine regenerate-certs m01-->if not provisioned
docker-machine ls
eval $(docker-machine env m01)


---
./kubectl create secret docker-registry <secretName> --docker-server=ecrServerURL --docker-username=AWS --docker-password=password --docker-email=none

<secretName> -- some random name for our cred
ecrServerURL -- url for ecr location -- https:// part in the docker login page generated when we click configure page.type without https(aws ecr get-login --no-include-email --region us-east-2)
password--same remaining part of aove output above https:// part.

No comments:

Post a Comment