Skip to content

Successfully Scaled and deployed Weather-app using docker & Kubernetes#8

Open
AnirbanB13 wants to merge 5 commits intorachanahegde:masterfrom
AnirbanB13:main
Open

Successfully Scaled and deployed Weather-app using docker & Kubernetes#8
AnirbanB13 wants to merge 5 commits intorachanahegde:masterfrom
AnirbanB13:main

Conversation

@AnirbanB13
Copy link
Copy Markdown

Hi Rachna!

Thank you very much for creating this awesome weather application which work really well on smartphone as well on any web browser.

This pull request introduces the configuration and deployment setup for the weather-app on Kubernetes. The primary changes include the creation of a Kubernetes Deployment, Service, and configuration to ensure the app runs in a scalable and reliable environment.


Description:

This pull request introduces the configuration and deployment setup for the weather-app on Kubernetes. The primary changes include the creation of a Kubernetes Deployment, Service, and configuration to ensure the app runs in a scalable and reliable environment.


Changes Included:

  • Containerised!:

  • Dockerised this application by writing a dockerfile and then creating a docker image.

  • Created docker image was pushed to Docker Hub at : https://hub.docker.com/repository/docker/anirbanb13/devops-projects-images/general

  • and can pull this docker image for testing purpose using
    docker push anirbanb13/devops-projects-images:latest

  • Deployment Configuration:

    • Defined a Deployment to manage the app's pods with 3 replicas.
    • Configured environment variables, including API key injection from a Kubernetes Secret.
    • Added resource requests and limits to optimize pod scheduling.
  • Service Configuration:

    • Created a LoadBalancer service to expose the app externally via a stable IP address.
  • Namespace Usage:

    • The app is deployed in the weather-app namespace to ensure proper isolation and organization.
  • Scaling:

    • Configured the deployment for 6 replicas (scalable as per demand).

Changes to Secrets:

  • A new secret named weather-app-secret has been created in the weather-app namespace to store the OWM_API_KEY securely. Ensure this secret is created before deployment.

Testing:

  • Deployment:
    The app was deployed successfully in the weather-app namespace with the desired number of pods.

  • Service:
    The service has been exposed externally with a stable IP address via AWS Load Balancer.


Next Steps:

  • Please verify that the weather-app-secret has been configured properly with the correct API key.
  • Confirm that the app is reachable via the exposed LoadBalancer service.

Additional Notes:

  • The app’s deployment can be scaled further by modifying the replicas count in the Deployment configuration.
  • If any issues arise during deployment or testing, please feel free to reach out, and I’ll assist in troubleshooting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant