Advertisement
Dm3Ch

Untitled

Oct 19th, 2021
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. [
  2. {
  3. "name": "https.443.https.geth-dedicated.default",
  4. "virtualHosts": [
  5. {
  6. "name": "dedicated.istio.dm3ch.net:443",
  7. "domains": [
  8. "dedicated.istio.dm3ch.net",
  9. "dedicated.istio.dm3ch.net:*"
  10. ],
  11. "routes": [
  12. {
  13. "name": "custom.dumb-filter",
  14. "match": {
  15. "prefix": "/",
  16. "caseSensitive": true
  17. },
  18. "route": {
  19. "cluster": "outbound|8545||geth-dedicated.default.svc.cluster.local",
  20. "timeout": "0s",
  21. "retryPolicy": {
  22. "retryOn": "connect-failure,refused-stream,unavailable,cancelled,retriable-status-codes",
  23. "numRetries": 2,
  24. "retryHostPredicate": [
  25. {
  26. "name": "envoy.retry_host_predicates.previous_hosts"
  27. }
  28. ],
  29. "hostSelectionRetryMaxAttempts": "5",
  30. "retriableStatusCodes": [
  31. 503
  32. ]
  33. },
  34. "hashPolicy": [
  35. {
  36. "connectionProperties": {
  37. "sourceIp": true
  38. }
  39. }
  40. ],
  41. "maxGrpcTimeout": "0s"
  42. },
  43. "metadata": {
  44. "filterMetadata": {
  45. "istio": {
  46. "config": "/apis/networking.istio.io/v1alpha3/namespaces/default/virtual-service/geth-dedicated"
  47. }
  48. }
  49. },
  50. "decorator": {
  51. "operation": "geth-dedicated.default.svc.cluster.local:8545/*"
  52. },
  53. "typedPerFilterConfig": {
  54. "envoy.filters.http.lua": {
  55. "@type": "type.googleapis.com/envoy.extensions.filters.http.lua.v3.LuaPerRoute",
  56. "sourceCode": {
  57. "inlineString": "function envoy_on_response(response_handle)\n response_handle:headers():add(\"dm3ch-test\", \"dm3ch\")\n response_handle:logErr(\"Bye Bye.\")\nend\n"
  58. }
  59. }
  60. }
  61. }
  62. ],
  63. "includeRequestAttemptCount": true
  64. }
  65. ],
  66. "validateClusters": false
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement