Skip to content

Instantly share code, notes, and snippets.

@viglesiasce
Created January 24, 2017 23:32
Show Gist options
  • Select an option

  • Save viglesiasce/3d1ccc4a615ca376e7bc918e257d9927 to your computer and use it in GitHub Desktop.

Select an option

Save viglesiasce/3d1ccc4a615ca376e7bc918e257d9927 to your computer and use it in GitHub Desktop.
--- [62/9599]
apiVersion: v1
kind: ConfigMap
metadata:
name: l5d-config
data:
config.yaml: |-
admin:
port: 9990
telemetry:
- kind: io.l5d.commonMetrics
- kind: io.l5d.recentRequests
sampleRate: 0.01
namers:
- kind: io.l5d.k8s
host: localhost
port: 8001
tracers:
- kind: io.l5d.zipkin
host: 10.240.0.8
port: 9411
sampleRate: 0.01
routers:
- protocol: http
label: ingress
baseDtab: |
/srv => /#/io.l5d.k8s/default/http;
/host => /srv;
/http/*/* => /host;
interpreter:
kind: default
transformers:
- kind: io.l5d.k8s.daemonset
namespace: default
port: internal
service: l5d
servers:
- port: 4140
ip: 0.0.0.0
- protocol: http
label: internal
baseDtab: |
/srv => /#/io.l5d.k8s/default/http;
/host => /srv;
/http/*/* => /host;
interpreter:
kind: default
transformers:
- kind: io.l5d.k8s.localnode
servers:
- port: 4141
ip: 0.0.0.0
--- [10/9599]
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
app: l5d
name: l5d
spec:
template:
metadata:
labels:
app: l5d
spec:
volumes:
- name: l5d-config
configMap:
name: "l5d-config"
containers:
- name: l5d
image: gcr.io/vic-goog/linkerd:latest
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
args:
- /io.buoyant/linkerd/config/config.yaml
ports:
- name: incoming
containerPort: 4141
hostPort: 4141
- name: outgoing
containerPort: 4140
hostPort: 4140
- name: admin
containerPort: 9990
hostPort: 9990
volumeMounts:
- name: "l5d-config"
mountPath: "/io.buoyant/linkerd/config"
readOnly: true
- name: kubectl
image: buoyantio/kubectl:v1.4.0
args:
- "proxy"
- "-p"
- "8001"
---
apiVersion: v1
kind: Service
metadata:
name: l5d
spec:
selector:
app: l5d
type: LoadBalancer
ports:
- name: outgoing
port: 4140
- name: incoming
port: 4141
- name: admin
port: 9990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment