Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/achanandhi-m/simple-nodejs-app-in-k8s
Deploying our custom NodeJSApplication inside k8s using k8s object "deployment" and "service"
https://github.com/achanandhi-m/simple-nodejs-app-in-k8s
Last synced: 18 days ago
JSON representation
Deploying our custom NodeJSApplication inside k8s using k8s object "deployment" and "service"
- Host: GitHub
- URL: https://github.com/achanandhi-m/simple-nodejs-app-in-k8s
- Owner: Achanandhi-M
- Created: 2023-08-31T10:44:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-17T14:39:14.000Z (24 days ago)
- Last Synced: 2024-12-17T15:39:29.984Z (24 days ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple-NodeJS-App-in-K8s
Commands to be usedkubectl get pods (To List the pods inside the k8s Cluster)
kubectl get deploy (To List the deployments inside the k8s Cluster)
kubectl get svc (To List the Service inside the k8s Cluster)
minikube start (Used to Start a minikube cluster)
minikube status (Used to Check the Status of the cluster)
minikube service (Used to access service in the minikube)
kubectl create -f (Used to create k8s object in the Declarative manner
kubectl apply -f (Used whenever any changes in the k8s object)
Deploying our custom NodeJSApplication inside k8s using k8s object "deployment" and "service"
Step 1: Start your Minikube cluster (Recommended way to get started with k8s)
![Screenshot from 2023-08-31 16-17-05](https://github.com/Achanandhi-M/Simple-NodeJS-App-in-K8s/assets/110651321/38b2fe87-cb18-4290-8680-8d1b581d7089)Step 2: After Starting Minkube Deploy your K8s object(Deployments, Service, etc........) inside the Minikube cluster (if you want configuration code for deployment and service you can use this repo)
![Screenshot from 2023-08-31 16-18-35](https://github.com/Achanandhi-M/Simple-NodeJS-App-in-K8s/assets/110651321/e531b8ac-12f9-4f57-b80c-77119d5f7149)Step 3: Accessing our Application through the Service object
![Screenshot from 2023-08-31 16-18-47](https://github.com/Achanandhi-M/Simple-NodeJS-App-in-K8s/assets/110651321/98c7a419-4f0f-4ea0-8d9c-c4db1abdebce)Step 4: Access the application
![Screenshot from 2023-08-31 16-18-51](https://github.com/Achanandhi-M/Simple-NodeJS-App-in-K8s/assets/110651321/e6537dc4-d3bf-49b0-a366-56ce14b712ae)