2020-01-13

web-defaults.json

{
    "Kind": "service-defaults",
    "Name": "web",
    "Protocol": "http",
    "MeshGateway": {
        "mode": "local"
    }
}

payments-defaults.json

{
    "Kind": "service-defaults",
    "Name": "payments",
    
    "Protocol": "http",
    
    "MeshGateway": {
        "mode": "local"
    }
    
}

payments-router.json:

{
"kind": "service-router",
"name": "payments",
"routes": [
  {
    "match": {
        "http": {
            "path_prefix": "/currency"
      }
    },

    "destination": {
        "service": "currency"
    }
  },
  {
    "match": {
        "http": {
            "path_prefix": "/"
      }
    },

    "destination": {
        "service": "payments"
    }
  }
]
}

你可能感兴趣的:(2020-01-13)