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: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: hello-world-deployment | |
spec: | |
replicas: 2 | |
template: | |
metadata: | |
labels: # labels to select/identify the deployment | |
app: hello-world |
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
// Type definitions for eureka-js-client 4.3 | |
// Project: https://github.com/jquatier/eureka-js-client | |
// Definitions by: Ilko Hoffmann <https://github.com/Schnillz> | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
export class Eureka { | |
constructor(config: EurekaClient.EurekaConfig) | |
start(): void; | |
stop(): void; | |
getInstancesByAppId(appId: string): string[]; |
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
var amqp = require('amqplib'); | |
var { EventEmitter } = require('events'); | |
class RabbitMqConnection extends EventEmitter { | |
constructor(host, user, password, queues, prefetch) { | |
super(); | |
this._url = `amqp://${user}:${password}@${host}`; | |
this._queues = queues || [ 'default' ]; | |
this._prefetch = prefetch; |