Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
linkerd test config for evaluation
# runs linkerd in a daemonset, in linker-to-linker mode
---
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
usage:
orgId: linkerd-examples-daemonset
routers:
- protocol: http
label: http-outgoing
dtab: |
/srv => /#/io.l5d.k8s/default/http;
/host => /srv;
/svc => /host;
/host/frontend => 50 * /srv/go-sample-frontend-canary & 50 * /srv/go-sample-frontend-prod;
interpreter:
kind: default
transformers:
- kind: io.l5d.k8s.daemonset
namespace: default
port: http-incoming
service: l5d
servers:
- port: 8080
ip: 0.0.0.0
service:
retries:
budget:
minRetriesPerSec: 5
percentCanRetry: 0.5
ttlSecs: 15
responseClassifier:
kind: io.l5d.http.retryableRead5XX
- protocol: http
label: http-incoming
dtab: |
/srv => /#/io.l5d.k8s/default/http;
/host => /srv;
/svc => /host;
/host/frontend => 50 * /srv/go-sample-frontend-canary & 50 * /srv/go-sample-frontend-prod;
interpreter:
kind: default
transformers:
- kind: io.l5d.k8s.localnode
servers:
- port: 8081
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
image: buoyantio/linkerd:1.1.0
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
args:
- /io.buoyant/linkerd/config/config.yaml
ports:
- name: http-outgoing
containerPort: 8080
hostPort: 8080
- name: http-incoming
containerPort: 8081
- name: admin
containerPort: 9990
volumeMounts:
- name: "l5d-config"
mountPath: "/io.buoyant/linkerd/config"
readOnly: true
- name: kubectl
image: buoyantio/kubectl:v1.6.2
args:
- "proxy"
- "-p"
- "8001"
---
apiVersion: v1
kind: Service
metadata:
name: l5d
spec:
selector:
app: l5d
type: LoadBalancer
ports:
- name: http-outgoing
port: 8080
- name: http-incoming
port: 8081
- name: admin
port: 9990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment