2017-08-01 21:20:16 +08:00
|
|
|
# runs linkerd in a daemonset, in linker-to-linker mode, with zipkin tracing
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: l5d-config
|
|
|
|
data:
|
|
|
|
config.yaml: |-
|
|
|
|
admin:
|
|
|
|
port: 9990
|
|
|
|
|
|
|
|
namers:
|
|
|
|
- kind: io.l5d.k8s
|
|
|
|
experimental: true
|
|
|
|
host: localhost
|
|
|
|
port: 8001
|
|
|
|
|
|
|
|
telemetry:
|
|
|
|
- kind: io.l5d.prometheus
|
|
|
|
- kind: io.l5d.zipkin
|
|
|
|
host: zipkin-collector.default.svc.cluster.local
|
|
|
|
port: 9410
|
|
|
|
sampleRate: 1.0
|
|
|
|
- kind: io.l5d.recentRequests
|
|
|
|
sampleRate: 0.25
|
|
|
|
|
|
|
|
usage:
|
|
|
|
orgId: linkerd-examples-daemonset-zipkin
|
|
|
|
|
|
|
|
routers:
|
|
|
|
- protocol: http
|
|
|
|
label: outgoing
|
|
|
|
dtab: |
|
|
|
|
/srv => /#/io.l5d.k8s/default/http;
|
|
|
|
/host => /srv;
|
|
|
|
/svc => /host;
|
|
|
|
/host/world => /srv/world-v1;
|
|
|
|
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: |
|
|
|
|
/srv => /#/io.l5d.k8s/default/http;
|
|
|
|
/host => /srv;
|
|
|
|
/svc => /host;
|
|
|
|
/host/world => /srv/world-v1;
|
|
|
|
interpreter:
|
|
|
|
kind: default
|
|
|
|
transformers:
|
|
|
|
- kind: io.l5d.k8s.localnode
|
|
|
|
servers:
|
|
|
|
- port: 4141
|
|
|
|
ip: 0.0.0.0
|
|
|
|
---
|
|
|
|
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
|
2018-05-04 19:48:54 +08:00
|
|
|
image: harbor-001.jimmysong.io/library/buoyantio-linkerd:1.1.2
|
2017-08-01 21:20:16 +08:00
|
|
|
env:
|
|
|
|
- name: POD_IP
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.podIP
|
|
|
|
args:
|
|
|
|
- /io.buoyant/linkerd/config/config.yaml
|
|
|
|
ports:
|
|
|
|
- name: outgoing
|
|
|
|
containerPort: 4140
|
|
|
|
hostPort: 4140
|
|
|
|
- name: incoming
|
|
|
|
containerPort: 4141
|
|
|
|
hostPort: 4141
|
|
|
|
- name: admin
|
|
|
|
containerPort: 9990
|
|
|
|
volumeMounts:
|
|
|
|
- name: "l5d-config"
|
|
|
|
mountPath: "/io.buoyant/linkerd/config"
|
|
|
|
readOnly: true
|
|
|
|
|
|
|
|
- name: kubectl
|
2018-05-04 19:48:54 +08:00
|
|
|
image: harbor-001.jimmysong.io/library/buoyantio-kubectl:v1.4.0
|
2017-08-01 21:20:16 +08:00
|
|
|
args:
|
|
|
|
- "proxy"
|
|
|
|
- "-p"
|
|
|
|
- "8001"
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: l5d
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: l5d
|
|
|
|
ports:
|
|
|
|
- name: outgoing
|
|
|
|
port: 4140
|
|
|
|
- name: incoming
|
|
|
|
port: 4141
|
|
|
|
- name: admin
|
|
|
|
port: 9990
|