Introduction:
As the demand for scalable and containerized web applications grows, Kubernetes remains a popular choice for orchestrating and deploying containerized workloads. In this guide, we'll walk you through the process of deploying an Angular application on Kubernetes using NodePort, providing a straightforward method to expose your application to the external world.
Prerequisites:
Ensure you have the following prerequisites in place before starting the deployment process:
- A functioning Kubernetes cluster- Tutorial to Install Kubernetes Locally
- Installed kubectl command-line tool
- Docker installed to containerize your Angular application.
Step 1: Clone The Repo
git clone https://github.com/shawon100/Angular-CRUD
Download 10+ DevOps Books That You Must Read
Step 2: Apply the manifests file
Then Go to manifests folder
At first deploy the deployment.yml file
kubectl apply -f deployment.yml
Then deploy the service.yml
kubectl apply -f service.yml
Step 3: Check the Pods, Services, and Ip address
Step 4: Access Your Angular Application:
Once the service is created, access your Angular application using the NodePort on any of your cluster's nodes. Find the node's external IP and access the application at
http://<node-ip>:NodePort
Watch The Full Video
0 comments:
Post a Comment