Skip to content

Commit e995b18

Browse files
updated postman
1 parent 6dc3fa4 commit e995b18

File tree

7 files changed

+122
-165
lines changed

7 files changed

+122
-165
lines changed

Kubernetes - Scenario/ResilientMicroservices.Sample/Postman/ReactiveMicroservices.postman_collection.json

Lines changed: 119 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"info": {
3-
"_postman_id": "e3550bef-2c41-4c33-9a84-aa3588a19408",
3+
"_postman_id": "23655253-fb1f-4389-8dd8-57eec5650c8f",
44
"name": "ReactiveMicroservices",
55
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
66
},
@@ -19,7 +19,7 @@
1919
],
2020
"body": {
2121
"mode": "raw",
22-
"raw": "{\r\n \"Id\": \"{{$guid}}\",\r\n \"Name\": \"Prajeesh Prathap\",\r\n \"CreditLimit\": 1000.0\r\n}"
22+
"raw": "{\r\n \"Id\": \"{{$guid}}\",\r\n \"Name\": \"John\",\r\n \"CreditLimit\": 1000.0\r\n}"
2323
},
2424
"url": {
2525
"raw": "http://localhost:32001/api/Customer/NewCustomer",
@@ -69,6 +69,45 @@
6969
},
7070
"response": []
7171
},
72+
{
73+
"name": "New Customer - k8s",
74+
"request": {
75+
"method": "POST",
76+
"header": [
77+
{
78+
"key": "Content-Type",
79+
"name": "Content-Type",
80+
"type": "text",
81+
"value": "application/json"
82+
}
83+
],
84+
"body": {
85+
"mode": "raw",
86+
"raw": "{\r\n \"Id\": \"b3d27f9b-d21d-327c-164e-7fb6776f87b0\",\r\n \"Name\": \"Prajeesh Prathap\",\r\n \"CreditLimit\": 1000.0\r\n}"
87+
},
88+
"url": {
89+
"raw": "http://localhost:8001/api/v1/namespaces/packt/services/customerservice/proxy/api/customer/NewCustomer",
90+
"protocol": "http",
91+
"host": [
92+
"localhost"
93+
],
94+
"port": "8001",
95+
"path": [
96+
"api",
97+
"v1",
98+
"namespaces",
99+
"packt",
100+
"services",
101+
"customerservice",
102+
"proxy",
103+
"api",
104+
"customer",
105+
"NewCustomer"
106+
]
107+
}
108+
},
109+
"response": []
110+
},
72111
{
73112
"name": "Update Credit Limit",
74113
"request": {
@@ -101,6 +140,45 @@
101140
},
102141
"response": []
103142
},
143+
{
144+
"name": "Update Credit Limit - k8s",
145+
"request": {
146+
"method": "PUT",
147+
"header": [
148+
{
149+
"key": "Content-Type",
150+
"name": "Content-Type",
151+
"type": "text",
152+
"value": "application/json"
153+
}
154+
],
155+
"body": {
156+
"mode": "raw",
157+
"raw": "4000.0"
158+
},
159+
"url": {
160+
"raw": "http://localhost:8001/api/v1/namespaces/packt/services/customerservice/proxy/api/customer/b3d27f9b-d21d-327c-164e-7fb6776f87b0",
161+
"protocol": "http",
162+
"host": [
163+
"localhost"
164+
],
165+
"port": "8001",
166+
"path": [
167+
"api",
168+
"v1",
169+
"namespaces",
170+
"packt",
171+
"services",
172+
"customerservice",
173+
"proxy",
174+
"api",
175+
"customer",
176+
"b3d27f9b-d21d-327c-164e-7fb6776f87b0"
177+
]
178+
}
179+
},
180+
"response": []
181+
},
104182
{
105183
"name": "New Order",
106184
"request": {
@@ -132,6 +210,45 @@
132210
}
133211
},
134212
"response": []
213+
},
214+
{
215+
"name": "New Order - k8s",
216+
"request": {
217+
"method": "POST",
218+
"header": [
219+
{
220+
"key": "Content-Type",
221+
"name": "Content-Type",
222+
"type": "text",
223+
"value": "application/json"
224+
}
225+
],
226+
"body": {
227+
"mode": "raw",
228+
"raw": "{\r\n \"Id\": \"b4d27f9b-d21d-327c-164e-7fb6776f87b0\",\r\n \"CustomerId\": \"b3d27f9b-d21d-327c-164e-7fb6776f87b0\",\r\n \"Amount\": 800.0\r\n}"
229+
},
230+
"url": {
231+
"raw": "http://localhost:8001/api/v1/namespaces/packt/services/orderservice/proxy/api/orders/NewOrder",
232+
"protocol": "http",
233+
"host": [
234+
"localhost"
235+
],
236+
"port": "8001",
237+
"path": [
238+
"api",
239+
"v1",
240+
"namespaces",
241+
"packt",
242+
"services",
243+
"orderservice",
244+
"proxy",
245+
"api",
246+
"orders",
247+
"NewOrder"
248+
]
249+
}
250+
},
251+
"response": []
135252
}
136253
]
137254
}

Kubernetes - Scenario/ResilientMicroservices.Sample/k8sDeploy/deploy.ps1

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
$namespace = "packt"
22
$dockerRegistry = "localhost:5000"
3-
$fluentdConfigFile= '.\k8s\efk\fluentd.conf'
4-
$releaseVersion = "0.0.1"
3+
$releaseVersion = "0.1.0"
54
$ErrorActionPreference = "Stop"
65

76
Write-Host "Building docker images" -ForegroundColor Yellow
@@ -33,10 +32,8 @@ if ($LASTEXITCODE -ne 0) {
3332

3433
Write-Host "Setup k8s requirements" -ForegroundColor Yellow
3534
& kubectl config set-context $(& kubectl config current-context) --namespace=$namespace
36-
& kubectl create configmap fluentd-config --from-file=fluent.conf=$fluentdConfigFile -n $namespace
3735

3836
Write-Host "Starting k8s deployment" -ForegroundColor Yellow
39-
& kubectl apply -f "$PSScriptRoot\k8s\efk"
4037
& kubectl apply -f "$PSScriptRoot\k8s"
4138
If ($LASTEXITCODE -ne 0) {
4239
throw "Failed to create deployments in k8s"

Kubernetes - Scenario/ResilientMicroservices.Sample/k8sDeploy/k8s/customerservice.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
spec:
2626
containers:
2727
- name: customerservice
28-
image: localhost:5000/customerservice:0.0.1
28+
image: localhost:5000/customerservice:0.1.0
2929
imagePullPolicy: Always
3030
ports:
3131
- containerPort: 80

Kubernetes - Scenario/ResilientMicroservices.Sample/k8sDeploy/k8s/efk/elasticSearch.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.

Kubernetes - Scenario/ResilientMicroservices.Sample/k8sDeploy/k8s/efk/fluentd.conf

Lines changed: 0 additions & 33 deletions
This file was deleted.

Kubernetes - Scenario/ResilientMicroservices.Sample/k8sDeploy/k8s/efk/kibana.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

Kubernetes - Scenario/ResilientMicroservices.Sample/k8sDeploy/k8s/orderservice.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
spec:
2626
containers:
2727
- name: orderservice
28-
image: localhost:5000/orderservice:0.0.1
28+
image: localhost:5000/orderservice:0.1.0
2929
imagePullPolicy: Always
3030
ports:
3131
- containerPort: 80

0 commit comments

Comments
 (0)