Skip to content

Instantly share code, notes, and snippets.

@bwplotka
Created January 24, 2018 11:23
Show Gist options
  • Save bwplotka/2638c836700a76247a84f5ee65199ae5 to your computer and use it in GitHub Desktop.
Save bwplotka/2638c836700a76247a84f5ee65199ae5 to your computer and use it in GitHub Desktop.
Kedge's backend proto that specifies "how" to proxy to the backend.
/// Backend data will be used to set up a pool of HTTP connection to the specified endpoint that will be kept open.
message Backend {
/// name is the string identifying the backend in all other configs.
string name = 1;
/// balancer decides which load balancing policy to use.
Balancer balancer = 2;
/// security controls the TLS connection details for the backend (HTTPS). If not present, insecure HTTP mode is used.
Security security = 3;
oneof resolver {
common.resolvers.SrvResolver srv = 10;
common.resolvers.K8sResolver k8s = 11;
common.resolvers.HostResolver host = 12;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment