aakashdeep8530 / hello-node-k8s

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

STEP 1 Download Assignment Files  Download files, move to "devops_assignment2" folder, verify Node.js/npm installation.

STEP 2 Create Dockerfile  Define instructions (FROM, WORKDIR, COPY, RUN, EXPOSE,CMD) to build Docker image. Build image, run container, expose port(s), access API.

STEP 3 Push Images to DockerHub  Tag Docker image, push to Docker Hub.

STEP 4 Set Up Minikube  Install Minikube, verify installation/version, check pods in "kube-system" namespace.

STEP 5 Create Deployment YAML  Define deployment configuration in deployment.yml, apply to Kubernetes cluster.

STEP 6 Configure Horizontal Pod Autoscaling (HPA)  Download Metrics Server, set resource limitations in metricserver.yml.

STEP 7 Enable HPA  Create HPA YAML, monitor with kubectl get hpa, watch real-time updates with watch kubectl get all.

STEP 8 Generate Traffic and Observe Pod Behavior  Open new terminal, generate traffic, observe pod scaling and deletion.

STEP 9 Push Code to GitHub and Authenticate with Personal Access Token  Sign in to GitHub, create a new repository, and push the code. Generate a token in GitHub settings, use it for authentication, and observe successful code push.

Here are some related links of this assignment. Document link:- https://drive.google.com/file/d/1Nw0SiS1nvGUUEnEcafNdIAjA1FC18ulh/view?usp=sharing

video link:- https://www.canva.com/design/DAGBp9srQgM/9L1iK4P_9cDzisnOUUc0Lw/watch?utm_content=DAGBp9srQgM&utm_campaign=designshare&utm_medium=link&utm_source=editor

About


Languages

Language:JavaScript 100.0%