Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bùi Minh Sơn - Kubernetes #131

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

bmson7112
Copy link
Contributor

Assignment: Deploy a Multi-tier Application on Kubernetes

  • Design and create the necessary YAML files to deploy the following components:

    • Frontend Deployment and Service: Deploy a frontend web server (e.g., Nginx) with multiple replicas. Expose the frontend service to access it from outside the cluster.
    • Backend Deployment and Service: Deploy a backend API server (e.g., Node.js, Flask, or any other framework) with multiple replicas. Expose the backend service within the cluster.
    • Database Deployment and Service: Deploy a database (e.g., MySQL or PostgreSQL) with persistent storage for data persistence. Expose the database service within the cluster.
  • Configure the appropriate networking between the frontend, backend, and database components.

    • The frontend should be able to communicate with the backend API server.
    • The backend API server should be able to access the database for data storage and retrieval.
  • Test the application by accessing the frontend web server from outside the cluster and verifying that it communicates with the backend API server and retrieves data from the database.

  • Use appropriate labels and selectors to ensure proper service discovery and communication between components.

  • Pay attention to resource requirements and limits to ensure the application runs smoothly within the cluster.

  • Consider using Secrets to store sensitive information like database credentials.

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