Skip to content

shivayogi-31/nodejs-feedback

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-feedback

Steps:

  1. Clone the project using git clone into your local repository

  2. To build an image , use docker build -t node:v1 . command to create an image .

  3. To push image to AWS ECR i. Install AWS CLI on your instance ii. Configure AWS CLI using the access key and token key which is generated in AWS IAM iii. Tag the Docker image use following command --> docker tag your-image-name:latest :latest iv. Authenticate Docker to your ECR registry use following command --> aws ecr get-login-password --region | docker login --username AWS --password-stdin v. Push the Docker image to ECR use following command --> docker push :latest

  4. Go to the instance where Kubernetes is installed.

  5. Authenticate Docker to the ECR registry by using aws ecr get-login-password --region | docker login --username AWS --password-stdin .dkr.ecr..amazonaws.com

  6. Create the Kubernetes Secret using the following command

    kubectl create secret docker-registry regcred
    --docker-server=.dkr.ecr.ap-south-1.amazonaws.com/devops
    --docker-username=AWS
    --docker-password=$(aws ecr get-login-password) \

  7. Reference the Secret in the Kubernetes manifest file

  8. Apply the kubernetes manifest file using kubectl apply -f <> command.

  9. To login into the application use the instance public ip followed by the node port to access the application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 37.8%
  • JavaScript 32.9%
  • CSS 26.2%
  • Dockerfile 3.1%