Skip to content

Instantly share code, notes, and snippets.

@SamFleming
Created February 18, 2019 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SamFleming/08e4fddb1d4956de2ef6e69466731ac3 to your computer and use it in GitHub Desktop.
Save SamFleming/08e4fddb1d4956de2ef6e69466731ac3 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ConfigMap
metadata:
name: l5d-config
data:
config.yaml: |-
admin:
ip: 0.0.0.0
port: 9990
namers:
- kind: io.l5d.k8s
experimental: true
host: localhost
port: 8001
telemetry:
- kind: io.l5d.prometheus
- kind: io.l5d.recentRequests
sampleRate: 0.25
routers:
- protocol: http
label: outgoing
dtab: |
/default => /#/io.l5d.k8s/default/http;
/qa => /#/io.l5d.k8s/qa/http;
/prod => /#/io.l5d.k8s/prod/http;
identifier:
- kind: io.l5d.header.token
header: host
interpreter:
kind: default
transformers:
- kind: io.l5d.k8s.daemonset
namespace: default
port: incoming
service: l5d
servers:
- port: 4140
ip: 0.0.0.0
service:
responseClassifier:
kind: io.l5d.http.retryableRead5XX
- protocol: http
label: incoming
dtab: |
/default => /#/io.l5d.k8s/default/http;
/qa => /#/io.l5d.k8s/qa/http;
/prod => /#/io.l5d.k8s/prod/http;
identifier:
- kind: io.l5d.header.token
header: host
interpreter:
kind: default
transformers:
- kind: io.l5d.k8s.localnode
servers:
- port: 4141
ip: 0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment