https://github.com/tankibaj/microservices-into-eks
Deploy sample microservices into EKS
https://github.com/tankibaj/microservices-into-eks
Last synced: 5 months ago
JSON representation
Deploy sample microservices into EKS
- Host: GitHub
- URL: https://github.com/tankibaj/microservices-into-eks
- Owner: tankibaj
- Created: 2021-04-25T22:19:12.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-25T23:03:52.000Z (over 4 years ago)
- Last Synced: 2025-02-17T21:37:00.324Z (8 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploy sample microservices into EKS

## Quick Start
#### Deploy
- We can watch the deploying progress by looking at the status in another terminal:
```bash
watch kubectl get all -o wide
```- Let’s bring up the `NodeJS Backend API`:
```bash
kubectl apply -f https://git.io/nodejs-deployment
kubectl apply -f https://git.io/nodejs-service
```- Bring up the `Crystal Backend API`:
```bash
kubectl apply -f https://git.io/crystal-deployment
kubectl apply -f https://git.io/crystal-service
```- Bring up the `Ruby Frontend`:
```bash
kubectl apply -f https://git.io/frontend-deployment
kubectl apply -f https://git.io/frontend-service
```- Find the `ELB` url and `curl` it:
```bash
ELB=$(kubectl get service ecsdemo-frontend -o json | jq -r '.status.loadBalancer.ingress[].hostname')
echo "http://$ELB"curl -m3 -v $ELB
```- Scale up the backend services:
```bash
kubectl scale deployment ecsdemo-nodejs --replicas=3
kubectl scale deployment ecsdemo-crystal --replicas=3
```- Scale up the frontend service:
```bash
kubectl scale deployment ecsdemo-frontend --replicas=3
```
---#### Clean up
To delete the resources created by the applications, we should delete the application deployments:
```bash
kubectl delete -f https://git.io/frontend-deployment
kubectl delete -f https://git.io/frontend-servicekubectl delete -f https://git.io/crystal-deployment
kubectl delete -f https://git.io/crystal-servicekubectl delete -f https://git.io/nodejs-deployment
kubectl delete -f https://git.io/nodejs-service
```