Lab02 : Deploy An App

  1. Once you activate your Sandbox, the next step is to deploy an App:
  2. 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
      
  3. 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
      
  4. Verify the Deployment:
    • Check the status of the deployed pods to ensure they are running:
      kubectl get pod
      
  • Congratulations, you have successfully completed Lab 02. Now it's time to explore the Node.js app which you deployed on Kubernetes.