Lab02 : Deploy An App
- Once you activate your Sandbox, the next step is to deploy an App:
- Clone the Repository:
- Navigate to the deployment folder:
cd deploy
- Clone the repository containing the Node.js application:
git clone https://github.com/CNCF-Lahore/nodejsapp.git
- Navigate to the deployment folder:
- Deploy the Application:
- Change directory to the cloned repository:
cd nodejsapp
- Apply the deployment configuration to your Kubernetes cluster:
kubectl apply -f deployment.yaml
- Apply the service configuration to expose the application:
kubectl apply -f service.yaml
- Change directory to the cloned repository:
- Verify the Deployment:
- Check the status of the deployed pods to ensure they are running:
kubectl get pod
- Check the status of the deployed pods to ensure they are running:
- Congratulations, you have successfully completed Lab 02. Now it's time to explore the Node.js app which you deployed on Kubernetes.