creditkarma / consul-client Goto Github PK
View Code? Open in Web Editor NEWA client for Hashicorp Consul written in TypeScript
A client for Hashicorp Consul written in TypeScript
I ran consul from Kubernetes, the way its exposed is using Ingress and Host
header is the key to match a service.
Any way to set Host:
header on request other than consul
?
Tried using Options.hostname
and Options.headers.Host
but no luck.
I have resolved by adding annotations nginx.ingress.kubernetes.io/server-alias: consul
,
but I think the Host
header should not hardcoded and can be set in userspace.
Hello
How can i connect to consul using the ACL token?
Hi,
I tried out this library, and I don't seem to be able to list keys, only get specific ones.
Right now, I can "hack" my way around it by passing {qs: { keys: true }}
to store.get
as a request option like so:
const store = new KvStore([this.host])
// This is a "hack" to get the consul client to list keys
const options = {qs: {"keys": true}}
const listOfKeys = await <{}>store.get( { path: this.baseKey, dc: this.dc }, options)
If this is simply missing, I volunteer to implement it as a part of upskilling on Typescript. Already forked it, but I wanted to check in case it was intentionally left out.
Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.