Setu-TS
    Preparing search index...

    Function ServiceDiscoveryPlugin

    • Creates the service discovery plugin.

      Kubernetes without an explicit token checks the projected token path once at registration and warns when absent, naming token and apiServer for use outside a pod.

      Parameters

      Returns IPlugin

      The plugin instance

      app.register(ServiceDiscoveryPlugin({
      provider: 'static',
      services: {
      billing: [
      { host: '10.0.0.1', port: 8080 },
      { host: '10.0.0.2', port: 8080 },
      ],
      },
      }));
      app.register(ServiceDiscoveryPlugin({
      provider: 'consul',
      address: 'http://127.0.0.1:8500',
      selfRegistration: { serviceName: 'orders', address: '10.0.0.7', port: 3000 },
      }));

      0.2.0