Kubernetes Project
DevOps Engineer with the Azure DevOps pipelines and repos and deployment skills. Passionate about learning about the DevOps tools and how it automates our deliverables.
Deploy an E-Commerce Project on Azure Kubernetes Service
The Application is Stan Robot Shop this is three tier architecture with different micro services
The Microservices are
1.User Microservice-user db
2.Catalogue Microservice—Different product each has different details and price
3.Cart Microservice—add the items in carts
4.Payment Microservice
5.Shipping Microservice-Calculating the price of shipping based on distance etc
6.Dispatch Microservice-ready to deliver
7.Web Microservice—User interface [Nginix]
8.Ratings Microservice—need to be store in data store in memory data storage i.e Redis
datastore-persistant volume in stateful it will come all the previously stored volume
Databases:
“Databases are broadly classified into relational and non-relational. Relational databases ensure strong consistency using structured schemas, while NoSQL databases provide scalability and flexibility for distributed systems.”
Relational :These store data in tables (rows & columns) and use SQL.
MySQL
PostgreSQL
Microsoft SQL Server
Oracle Database
MariaDB
SQLite
Used for: banking, finance, ERP, CRM systems
Used when high scale, flexibility, and performance are required.
Non Relational:Mangodb,couchdb,azurecosmosdb
Databases used in the project
Mysql Database:
Mongo DB :
——————————————————————-Flow of the Project
Microservices»container[dockerfiles]»K8s Manifests»Helm charts»AKS
helmchart:bundle all together and we can dynamic the value of all yamls
mychart/ ├── Chart.yaml # Chart metadata (name, version) ├── values.yaml # Default configuration values ├── templates/ # Kubernetes YAML templates │ ├── deployment.yaml │ ├── service.yaml │ └── ingress.yaml └── charts/ # Dependency charts (optional)
1.create the AKS
az aks create --resource-group ecommercedemopractice --name ecommerceAKS --node-count 1 --node-vm-size Standard_b2ps_v2 --enable-managed-identity --generate-ssh-keys
az aks get-credentials --resource-group ecommercedemopractice --name ecommerceAKS
PS C:\Users\91967\downloads\three-tier-architecture-demo> az aks get-credentials --resource-group ecommercedemopractice --name ecommerceAKS
PS C:\Users\91967\downloads\three-tier-architecture-demo> az aks get-credentials --resource-group ecommercedemopractice --name ecommerceAKS
Merged "ecommerceAKS" as current context in C:\Users\91967\.kube\config
PS C:\Users\91967\downloads\three-tier-architecture-demo> kubectl get pods
No resources found in default namespace.
PS C:\Users\91967\downloads\three-tier-architecture-demo> kubectl config current-context
to reconnect again
az aks get-credentials --resource-group ecommercedemopractice --name ecommerceAKS --overwrite-existing
- 2.need to follow some command to get the aks connect with the terminal