Skip to content

Commit 8a4faf7

Browse files
Kalyan Reddy DaidaKalyan Reddy Daida
authored andcommitted
Welcome to Stack Simplify
1 parent d58f303 commit 8a4faf7

File tree

5 files changed

+195
-16
lines changed

5 files changed

+195
-16
lines changed
Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
{
2+
"info": {
3+
"_postman_id": "ba15e203-a37e-4a31-a94e-e8bfe37ad588",
4+
"name": "AWS-EKS-Masterclass-Microservices",
5+
"description": "Microservices Deployed to EKS and Fargate clusters as part of Masterclass course",
6+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
7+
},
8+
"item": [
9+
{
10+
"name": "UserManagement-Service",
11+
"item": [
12+
{
13+
"name": "UserManagement-HealthStatus",
14+
"request": {
15+
"method": "GET",
16+
"header": [],
17+
"url": {
18+
"raw": "{{url}}/usermgmt/health-status",
19+
"host": [
20+
"{{url}}"
21+
],
22+
"path": [
23+
"usermgmt",
24+
"health-status"
25+
]
26+
}
27+
},
28+
"response": []
29+
},
30+
{
31+
"name": "UserManagement-CreateUser",
32+
"request": {
33+
"method": "POST",
34+
"header": [
35+
{
36+
"key": "Content-Type",
37+
"name": "Content-Type",
38+
"value": "application/json",
39+
"type": "text"
40+
}
41+
],
42+
"body": {
43+
"mode": "raw",
44+
"raw": " {\n \"username\": \"admin2\",\n \"email\": \"[email protected]\",\n \"role\": \"ROLE_ADMIN\",\n \"enabled\": true,\n \"firstname\": \"fname1\",\n \"lastname\": \"lname1\",\n \"password\": \"Pass@123\"\n }"
45+
},
46+
"url": {
47+
"raw": "{{url}}/usermgmt/user",
48+
"host": [
49+
"{{url}}"
50+
],
51+
"path": [
52+
"usermgmt",
53+
"user"
54+
]
55+
}
56+
},
57+
"response": []
58+
},
59+
{
60+
"name": "UserManagement-ListAllUsers",
61+
"request": {
62+
"method": "GET",
63+
"header": [],
64+
"url": {
65+
"raw": "{{url}}/usermgmt/users",
66+
"host": [
67+
"{{url}}"
68+
],
69+
"path": [
70+
"usermgmt",
71+
"users"
72+
]
73+
}
74+
},
75+
"response": []
76+
},
77+
{
78+
"name": "UserManagement-UpdateUser",
79+
"request": {
80+
"method": "PUT",
81+
"header": [
82+
{
83+
"key": "Content-Type",
84+
"name": "Content-Type",
85+
"value": "application/json",
86+
"type": "text"
87+
}
88+
],
89+
"body": {
90+
"mode": "raw",
91+
"raw": " {\n \"username\": \"admin1\",\n \"email\": \"[email protected]\",\n \"role\": \"ROLE_ADMIN\",\n \"enabled\": true,\n \"firstname\": \"fname2\",\n \"lastname\": \"lname1\",\n \"password\": \"Pass@123\"\n }"
92+
},
93+
"url": {
94+
"raw": "{{url}}/usermgmt/user",
95+
"host": [
96+
"{{url}}"
97+
],
98+
"path": [
99+
"usermgmt",
100+
"user"
101+
]
102+
}
103+
},
104+
"response": []
105+
},
106+
{
107+
"name": "UserManagement-DeleteUser",
108+
"request": {
109+
"method": "DELETE",
110+
"header": [],
111+
"url": {
112+
"raw": "{{url}}/usermgmt/user/admin2",
113+
"host": [
114+
"{{url}}"
115+
],
116+
"path": [
117+
"usermgmt",
118+
"user",
119+
"admin2"
120+
]
121+
}
122+
},
123+
"response": []
124+
},
125+
{
126+
"name": "UserMgmt-NotificationService-Health-Status",
127+
"request": {
128+
"method": "GET",
129+
"header": [],
130+
"url": {
131+
"raw": "{{url}}/usermgmt/notification-health-status",
132+
"host": [
133+
"{{url}}"
134+
],
135+
"path": [
136+
"usermgmt",
137+
"notification-health-status"
138+
]
139+
}
140+
},
141+
"response": []
142+
},
143+
{
144+
"name": "UserMgmt-NotificationService-Info",
145+
"request": {
146+
"method": "GET",
147+
"header": [],
148+
"url": {
149+
"raw": "{{url}}/usermgmt/notification-service-info",
150+
"host": [
151+
"{{url}}"
152+
],
153+
"path": [
154+
"usermgmt",
155+
"notification-service-info"
156+
]
157+
}
158+
},
159+
"response": []
160+
}
161+
],
162+
"protocolProfileBehavior": {}
163+
}
164+
],
165+
"event": [
166+
{
167+
"listen": "prerequest",
168+
"script": {
169+
"id": "a3134af0-60c9-44bb-b244-b5e5686d79dd",
170+
"type": "text/javascript",
171+
"exec": [
172+
""
173+
]
174+
}
175+
},
176+
{
177+
"listen": "test",
178+
"script": {
179+
"id": "a850eb0a-a6ae-413c-9106-4665240aae6b",
180+
"type": "text/javascript",
181+
"exec": [
182+
""
183+
]
184+
}
185+
}
186+
],
187+
"protocolProfileBehavior": {}
188+
}

12-Microservices-Deployment-on-EKS/kube-manifests/02-UserManagementMicroservice-Deployment.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ spec:
2121
containers:
2222
- name: usermgmt-restapp
2323
image: stacksimplify/kube-usermanagement-microservice:1.0.0
24-
resources:
25-
requests:
26-
memory: "128Mi"
27-
cpu: "500m"
28-
limits:
29-
memory: "500Mi"
30-
cpu: "1000m"
3124
ports:
3225
- containerPort: 8095
3326
env:
@@ -57,13 +50,11 @@ spec:
5750
initialDelaySeconds: 60
5851
periodSeconds: 10
5952
readinessProbe:
60-
exec:
61-
command:
62-
- /bin/sh
63-
- -c
64-
- nc -z localhost 8095
53+
httpGet:
54+
path: /usermgmt/health-status
55+
port: 8095
6556
initialDelaySeconds: 60
66-
periodSeconds: 10
57+
periodSeconds: 10
6758
---
6859
# Kubernetes Secrets
6960
apiVersion: v1

12-Microservices-Deployment-on-EKS/kube-manifests/04-NotificationMicroservice-Deployment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ spec:
2424
- name: AWS_MAIL_SERVER_HOST
2525
value: "smtp-service"
2626
- name: AWS_MAIL_SERVER_USERNAME
27-
value: "AKIASUF7HC7SRJABCDEM"
27+
value: "AKIASUF7HC7SQJ6BCLVS"
2828
- name: AWS_MAIL_SERVER_PASSWORD
29-
value: "BF3RY7UUuhCjMr7Mgj2vE/Lrc/JTJNvoWBzQokKOMlQ/"
29+
value: "BARcmLiC68wgmhTy/cQvz/E8vFzeizGqdeASNtCs6+Nv"
3030
- name: AWS_MAIL_SERVER_FROM_ADDRESS
3131

12-Microservices-Deployment-on-EKS/kube-manifests/07-ALB-Ingress-SSL-Redirect-ExternalDNS.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: Ingress
44
metadata:
55
name: eks-microservices-demo
66
labels:
7-
app: eks-devops
7+
app: usermgmt-restapp
88
annotations:
99
# Ingress Core Settings
1010
kubernetes.io/ingress.class: "alb"

12-Microservices-Deployment-on-EKS/temp

Whitespace-only changes.

0 commit comments

Comments
 (0)