|
33 | 33 | terminationGracePeriodSeconds: 5 |
34 | 34 | containers: |
35 | 35 | - name: server |
36 | | - image: gcr.io/google-samples/microservices-demo/emailservice:v0.2.3 |
| 36 | + image: gcr.io/google-samples/microservices-demo/*:v0.2.4 |
37 | 37 | ports: |
38 | 38 | - containerPort: 8080 |
39 | 39 | env: |
|
88 | 88 | serviceAccountName: default |
89 | 89 | containers: |
90 | 90 | - name: server |
91 | | - image: gcr.io/google-samples/microservices-demo/checkoutservice:v0.2.3 |
| 91 | + image: gcr.io/google-samples/microservices-demo/*:v0.2.4 |
92 | 92 | ports: |
93 | 93 | - containerPort: 5050 |
94 | 94 | readinessProbe: |
@@ -158,7 +158,7 @@ spec: |
158 | 158 | terminationGracePeriodSeconds: 5 |
159 | 159 | containers: |
160 | 160 | - name: server |
161 | | - image: gcr.io/google-samples/microservices-demo/recommendationservice:v0.2.3 |
| 161 | + image: gcr.io/google-samples/microservices-demo/*:v0.2.4 |
162 | 162 | ports: |
163 | 163 | - containerPort: 8080 |
164 | 164 | readinessProbe: |
@@ -219,7 +219,7 @@ spec: |
219 | 219 | serviceAccountName: default |
220 | 220 | containers: |
221 | 221 | - name: server |
222 | | - image: gcr.io/google-samples/microservices-demo/frontend:v0.2.3 |
| 222 | + image: gcr.io/google-samples/microservices-demo/*:v0.2.4 |
223 | 223 | ports: |
224 | 224 | - containerPort: 8080 |
225 | 225 | readinessProbe: |
@@ -255,7 +255,7 @@ spec: |
255 | 255 | value: "checkoutservice:5050" |
256 | 256 | - name: AD_SERVICE_ADDR |
257 | 257 | value: "adservice:9555" |
258 | | - # # ENV_PLATFORM: One of: local, gcp, aws, azure, onprem |
| 258 | + # # ENV_PLATFORM: One of: local, gcp, aws, azure, onprem, alibaba |
259 | 259 | # # When not set, defaults to "local" unless running in GKE, otherwies auto-sets to gcp |
260 | 260 | # - name: ENV_PLATFORM |
261 | 261 | # value: "aws" |
@@ -316,7 +316,7 @@ spec: |
316 | 316 | terminationGracePeriodSeconds: 5 |
317 | 317 | containers: |
318 | 318 | - name: server |
319 | | - image: gcr.io/google-samples/microservices-demo/paymentservice:v0.2.3 |
| 319 | + image: gcr.io/google-samples/microservices-demo/*:v0.2.4 |
320 | 320 | ports: |
321 | 321 | - containerPort: 50051 |
322 | 322 | env: |
@@ -366,7 +366,7 @@ spec: |
366 | 366 | terminationGracePeriodSeconds: 5 |
367 | 367 | containers: |
368 | 368 | - name: server |
369 | | - image: gcr.io/google-samples/microservices-demo/productcatalogservice:v0.2.3 |
| 369 | + image: gcr.io/google-samples/microservices-demo/*:v0.2.4 |
370 | 370 | ports: |
371 | 371 | - containerPort: 3550 |
372 | 372 | env: |
@@ -424,7 +424,7 @@ spec: |
424 | 424 | terminationGracePeriodSeconds: 5 |
425 | 425 | containers: |
426 | 426 | - name: server |
427 | | - image: gcr.io/google-samples/microservices-demo/cartservice:v0.2.3 |
| 427 | + image: gcr.io/google-samples/microservices-demo/*:v0.2.4 |
428 | 428 | ports: |
429 | 429 | - containerPort: 7070 |
430 | 430 | env: |
@@ -479,9 +479,25 @@ spec: |
479 | 479 | serviceAccountName: default |
480 | 480 | terminationGracePeriodSeconds: 5 |
481 | 481 | restartPolicy: Always |
| 482 | + initContainers: |
| 483 | + - command: |
| 484 | + - /bin/sh |
| 485 | + - -exc |
| 486 | + - | |
| 487 | + echo "Init container pinging frontend: ${FRONTEND_ADDR}..." |
| 488 | + STATUSCODE=$(wget --server-response http://${FRONTEND_ADDR} 2>&1 | awk '/^ HTTP/{print $2}') |
| 489 | + if test $STATUSCODE -ne 200; then |
| 490 | + echo "Error: Could not reach frontend - Status code: ${STATUSCODE}" |
| 491 | + exit 1 |
| 492 | + fi |
| 493 | + name: frontend-check |
| 494 | + image: gcr.io/google-samples/microservices-demo/*:v0.2.4 |
| 495 | + env: |
| 496 | + - name: FRONTEND_ADDR |
| 497 | + value: "frontend:80" |
482 | 498 | containers: |
483 | 499 | - name: main |
484 | | - image: gcr.io/google-samples/microservices-demo/loadgenerator:v0.2.3 |
| 500 | + image: gcr.io/google-samples/microservices-demo/*:v0.2.4 |
485 | 501 | env: |
486 | 502 | - name: FRONTEND_ADDR |
487 | 503 | value: "frontend:80" |
@@ -512,7 +528,7 @@ spec: |
512 | 528 | terminationGracePeriodSeconds: 5 |
513 | 529 | containers: |
514 | 530 | - name: server |
515 | | - image: gcr.io/google-samples/microservices-demo/currencyservice:v0.2.3 |
| 531 | + image: gcr.io/google-samples/microservices-demo/*:v0.2.4 |
516 | 532 | ports: |
517 | 533 | - name: grpc |
518 | 534 | containerPort: 7000 |
@@ -568,7 +584,7 @@ spec: |
568 | 584 | serviceAccountName: default |
569 | 585 | containers: |
570 | 586 | - name: server |
571 | | - image: gcr.io/google-samples/microservices-demo/shippingservice:v0.2.3 |
| 587 | + image: gcr.io/google-samples/microservices-demo/*:v0.2.4 |
572 | 588 | ports: |
573 | 589 | - containerPort: 50051 |
574 | 590 | env: |
@@ -625,7 +641,7 @@ spec: |
625 | 641 | spec: |
626 | 642 | containers: |
627 | 643 | - name: redis |
628 | | - image: redis:alpine |
| 644 | + image: gcr.io/google-samples/microservices-demo/*:v0.2.4 |
629 | 645 | ports: |
630 | 646 | - containerPort: 6379 |
631 | 647 | readinessProbe: |
@@ -680,7 +696,7 @@ spec: |
680 | 696 | terminationGracePeriodSeconds: 5 |
681 | 697 | containers: |
682 | 698 | - name: server |
683 | | - image: gcr.io/google-samples/microservices-demo/adservice:v0.2.3 |
| 699 | + image: gcr.io/google-samples/microservices-demo/*:v0.2.4 |
684 | 700 | ports: |
685 | 701 | - containerPort: 9555 |
686 | 702 | env: |
|
0 commit comments