Skip to content

Instantly share code, notes, and snippets.

@naveensrinivasan
Created March 8, 2017 01:09
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 naveensrinivasan/10e649f5395f8726eb31ea08dcfb39e6 to your computer and use it in GitHub Desktop.
Save naveensrinivasan/10e649f5395f8726eb31ea08dcfb39e6 to your computer and use it in GitHub Desktop.
linkerd sample tracing
apiVersion: v1
kind: ConfigMap
metadata:
name: linkerd-config
data:
config.yaml: |-
admin:
port: 9990
telemetry:
- kind: io.l5d.zipkin
host: zipkin
port: 9410
sampleRate: 1.0
routers:
- protocol: http
label: router1
dtab: /svc => /$/inet/127.1/9001
servers:
- port: 9000
- protocol: http
label: router2
dtab: /svc => /$/inet/127.1/9002
servers:
- port: 9001
- protocol: http
label: router3
dtab: /svc => /$/inet/127.1/9990
servers:
- port: 9002
kind: ReplicationController
apiVersion: v1
metadata:
name: hello
spec:
replicas: 1
selector:
app: hello
template:
metadata:
labels:
app: hello
spec:
dnsPolicy: ClusterFirst
volumes:
- name: linkerd-config
configMap:
name: "linkerd-config"
containers:
- name: linkerd
image: buoyantio/linkerd:latest
args:
- "/io.buoyant/linkerd/config/config.yaml"
ports:
- name: ext
containerPort: 8080
- name: admin
containerPort: 9990
volumeMounts:
- name: "linkerd-config"
mountPath: "/io.buoyant/linkerd/config"
readOnly: true
- name: kubectl
image: buoyantio/kubectl:1.2.3
args:
- "proxy"
- "-p"
- "8001"
kind: Service
apiVersion: v1
metadata:
name: hello
spec:
selector:
app: hello
type: LoadBalancer
ports:
- name: admin
port: 9990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment