This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- message html --> | |
<li> | |
<div class="d-sm-flex flex-row align-content-stretch"> | |
<div class="p-2 alert-success"> | |
<span>{{user}}</span> | |
</div> | |
<div class="p-2"> | |
<p class='msg'>{{text}}</p> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am johnytiago on github. | |
* I am johnytiago (https://keybase.io/johnytiago) on keybase. | |
* I have a public key ASAaCkWPM2ouUQMF5mIephN9JbW6Y-SmzUqFr2cnag7N5Qo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: reviews | |
spec: | |
hosts: | |
- reviews | |
http: | |
- match: | |
- headers: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: ratings | |
spec: | |
hosts: | |
- ratings | |
http: | |
- match: | |
- headers: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: reviews | |
spec: | |
hosts: | |
- reviews | |
http: | |
- route: | |
- destination: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (process.env.SERVICE_VERSION === 'v-faulty') { | |
if (Math.random() <= 0.5) // Break in half the calls | |
return getLocalReviewsServiceUnavailable(res) | |
return getLocalReviewsSuccessful(res, productId) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
spec: | |
containers: | |
- name: ratings | |
image: istio/examples-bookinfo-ratings-v1:1.14.0 | |
imagePullPolicy: IfNotPresent | |
ports: | |
- containerPort: 9080 | |
env: | |
- name: SERVICE_VERSION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: reviews | |
spec: | |
hosts: | |
- reviews | |
http: | |
- route: | |
- destination: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
retries: | |
attempts: 3 | |
perTryTimeout: 2s | |
retryOn: gateway-error,connect-failure,refused-stream |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: DestinationRule | |
metadata: | |
name: reviews-destination | |
spec: | |
host: reviews | |
subsets: | |
- name: v1 | |
labels: | |
version: v1 |
OlderNewer