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.
Provider arm and its configuration
The plugin instance
app.register(ServiceDiscoveryPlugin({ provider: 'static', services: { billing: [ { host: '10.0.0.1', port: 8080 }, { host: '10.0.0.2', port: 8080 }, ], },})); Copy
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 },})); Copy
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
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.