Skip to content

Commit 85e83e6

Browse files
committed
Fixing minor bugs on k8s deployment
1 parent 14bd6a4 commit 85e83e6

2 files changed

Lines changed: 45 additions & 42 deletions

File tree

k8s/deploy.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ ExecKube -cmd 'set image deployments/payment payment=${registryPath}${dockerOrg}
192192
ExecKube -cmd 'set image deployments/webmvc webmvc=${registryPath}${dockerOrg}/webmvc:$imageTag'
193193
ExecKube -cmd 'set image deployments/webstatus webstatus=${registryPath}${dockerOrg}/webstatus:$imageTag'
194194
ExecKube -cmd 'set image deployments/webspa webspa=${registryPath}${dockerOrg}/webspa:$imageTag'
195+
ExecKube -cmd 'set image deployments/orderingbackground orderingbackground=${registryPath}${dockerOrg}/ordering.backgroundtasks:$imageTag'
196+
195197

196198
Write-Host "Execute rollout..." -ForegroundColor Yellow
197199
ExecKube -cmd 'rollout resume deployments/basket'
@@ -204,6 +206,7 @@ ExecKube -cmd 'rollout resume deployments/payment'
204206
ExecKube -cmd 'rollout resume deployments/webmvc'
205207
ExecKube -cmd 'rollout resume deployments/webstatus'
206208
ExecKube -cmd 'rollout resume deployments/webspa'
209+
ExecKube -cmd 'rollout resume deployments/orderingbackground'
207210

208211
Write-Host "WebSPA is exposed at http://$externalDns, WebMVC at http://$externalDns/webmvc, WebStatus at http://$externalDns/webstatus" -ForegroundColor Yellow
209212

k8s/deployments.yaml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ spec:
5656
path: /hc
5757
port: 80
5858
scheme: HTTP
59-
initialDelaySeconds: 5
60-
periodSeconds: 10
59+
initialDelaySeconds: 60
60+
periodSeconds: 60
6161
livenessProbe:
6262
httpGet:
6363
path: /hc
6464
port: 80
6565
scheme: HTTP
66-
initialDelaySeconds: 60
67-
periodSeconds: 10
66+
initialDelaySeconds: 120
67+
periodSeconds: 60
6868
imagePullSecrets:
6969
- name: registry-key
7070
---
@@ -121,15 +121,15 @@ spec:
121121
path: /hc
122122
port: 80
123123
scheme: HTTP
124-
initialDelaySeconds: 5
125-
periodSeconds: 10
124+
initialDelaySeconds: 60
125+
periodSeconds: 60
126126
livenessProbe:
127127
httpGet:
128128
path: /hc
129129
port: 80
130130
scheme: HTTP
131-
initialDelaySeconds: 60
132-
periodSeconds: 10
131+
initialDelaySeconds: 120
132+
periodSeconds: 60
133133
imagePullSecrets:
134134
- name: registry-key
135135
---
@@ -208,15 +208,15 @@ spec:
208208
path: /hc
209209
port: 80
210210
scheme: HTTP
211-
initialDelaySeconds: 5
212-
periodSeconds: 10
211+
initialDelaySeconds: 60
212+
periodSeconds: 60
213213
livenessProbe:
214214
httpGet:
215215
path: /hc
216216
port: 80
217217
scheme: HTTP
218-
initialDelaySeconds: 60
219-
periodSeconds: 10
218+
initialDelaySeconds: 120
219+
periodSeconds: 60
220220
imagePullSecrets:
221221
- name: registry-key
222222
---
@@ -278,22 +278,22 @@ spec:
278278
path: /hc
279279
port: 80
280280
scheme: HTTP
281-
initialDelaySeconds: 5
282-
periodSeconds: 10
281+
initialDelaySeconds: 60
282+
periodSeconds: 60
283283
livenessProbe:
284284
httpGet:
285285
path: /hc
286286
port: 80
287287
scheme: HTTP
288-
initialDelaySeconds: 60
289-
periodSeconds: 10
288+
initialDelaySeconds: 120
289+
periodSeconds: 60
290290
imagePullSecrets:
291291
- name: registry-key
292292
---
293293
apiVersion: extensions/v1beta1
294294
kind: Deployment
295295
metadata:
296-
name: ordering.backgroundtasks
296+
name: orderingbackground
297297
spec:
298298
paused: true
299299
template:
@@ -303,7 +303,7 @@ spec:
303303
component: orderingbackground
304304
spec:
305305
containers:
306-
- name: ordering
306+
- name: orderingbackground
307307
image: eshop/ordering.backgroundtasks
308308
imagePullPolicy: Always
309309
env:
@@ -353,15 +353,15 @@ spec:
353353
path: /hc
354354
port: 80
355355
scheme: HTTP
356-
initialDelaySeconds: 5
357-
periodSeconds: 10
356+
initialDelaySeconds: 60
357+
periodSeconds: 60
358358
livenessProbe:
359359
httpGet:
360360
path: /hc
361361
port: 80
362362
scheme: HTTP
363-
initialDelaySeconds: 60
364-
periodSeconds: 10
363+
initialDelaySeconds: 120
364+
periodSeconds: 60
365365
imagePullSecrets:
366366
- name: registry-key
367367
---
@@ -433,15 +433,15 @@ spec:
433433
path: /hc
434434
port: 80
435435
scheme: HTTP
436-
initialDelaySeconds: 5
437-
periodSeconds: 10
436+
initialDelaySeconds: 50
437+
periodSeconds: 60
438438
livenessProbe:
439439
httpGet:
440440
path: /hc
441441
port: 80
442442
scheme: HTTP
443-
initialDelaySeconds: 60
444-
periodSeconds: 10
443+
initialDelaySeconds: 120
444+
periodSeconds: 60
445445
imagePullSecrets:
446446
- name: registry-key
447447
---
@@ -523,15 +523,15 @@ spec:
523523
path: /hc
524524
port: 80
525525
scheme: HTTP
526-
initialDelaySeconds: 5
527-
periodSeconds: 10
526+
initialDelaySeconds: 60
527+
periodSeconds: 60
528528
livenessProbe:
529529
httpGet:
530530
path: /hc
531531
port: 80
532532
scheme: HTTP
533-
initialDelaySeconds: 60
534-
periodSeconds: 10
533+
initialDelaySeconds: 120
534+
periodSeconds: 60
535535
imagePullSecrets:
536536
- name: registry-key
537537
---
@@ -578,15 +578,15 @@ spec:
578578
path: /hc
579579
port: 80
580580
scheme: HTTP
581-
initialDelaySeconds: 5
582-
periodSeconds: 10
581+
initialDelaySeconds: 60
582+
periodSeconds: 60
583583
livenessProbe:
584584
httpGet:
585585
path: /hc
586586
port: 80
587587
scheme: HTTP
588-
initialDelaySeconds: 60
589-
periodSeconds: 10
588+
initialDelaySeconds: 120
589+
periodSeconds: 60
590590
imagePullSecrets:
591591
- name: registry-key
592592
---
@@ -700,15 +700,15 @@ spec:
700700
path: /hc
701701
port: 80
702702
scheme: HTTP
703-
initialDelaySeconds: 5
704-
periodSeconds: 10
703+
initialDelaySeconds: 60
704+
periodSeconds: 60
705705
livenessProbe:
706706
httpGet:
707707
path: /hc
708708
port: 80
709709
scheme: HTTP
710-
initialDelaySeconds: 60
711-
periodSeconds: 10
710+
initialDelaySeconds: 120
711+
periodSeconds: 60
712712
imagePullSecrets:
713713
- name: registry-key
714714
---
@@ -893,14 +893,14 @@ spec:
893893
path: /hc
894894
port: 80
895895
scheme: HTTP
896-
initialDelaySeconds: 5
897-
periodSeconds: 10
896+
initialDelaySeconds: 60
897+
periodSeconds: 60
898898
livenessProbe:
899899
httpGet:
900900
path: /hc
901901
port: 80
902902
scheme: HTTP
903-
initialDelaySeconds: 60
904-
periodSeconds: 10
903+
initialDelaySeconds: 120
904+
periodSeconds: 60
905905
imagePullSecrets:
906906
- name: registry-key

0 commit comments

Comments
 (0)