Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Linkerd Service Mesh
- # Runs linkerd in a daemonset, in linker-to-linker mode, using namerd to route
- #
- ---
- # Configuration - Route to namerd
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: l5d-config
- data:
- config.yaml: |-
- admin:
- ip: 0.0.0.0
- port: 9990
- telemetry:
- - kind: io.l5d.prometheus
- - kind: io.l5d.recentRequests
- sampleRate: 0.25 # TODO: tune
- usage:
- orgId: flite-linkerd
- routers: # TODO: Add HTTP/2 & GRPC
- - protocol: http
- label: http-outgoing
- interpreter:
- kind: io.l5d.namerd
- dst: /$/inet/namerd.default.svc.cluster.local/4100
- namespace: http-outgoing
- transformers:
- - kind: io.l5d.k8s.daemonset
- namespace: default
- port: http-outgoing
- service: l5d
- servers:
- - port: 4140
- ip: 0.0.0.0
- service:
- responseClassifier:
- kind: io.l5d.http.retryableRead5XX
- - protocol: http
- label: http-incoming
- interpreter:
- kind: io.l5d.namerd
- dst: /$/inet/namerd.default.svc.cluster.local/4100
- namespace: http-incoming
- transformers:
- - kind: io.l5d.k8s.localnode
- servers:
- - port: 4141
- ip: 0.0.0.0
- - protocol: http
- label: http-external
- interpreter:
- kind: io.l5d.namerd
- dst: /$/inet/namerd.default.svc.cluster.local/4100
- namespace: http-incoming
- servers:
- - port: 4142
- 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:
- # Linkerd Container
- - name: l5d
- image: buoyantio/linkerd:1.2.0
- env:
- - name: POD_IP
- valueFrom:
- fieldRef:
- fieldPath: status.podIP
- args:
- - /io.buoyant/linkerd/config/config.yaml
- ports: # TODO: Add http/2 & GRPC
- - name: http-outgoing
- containerPort: 4140
- hostPort: 4140
- - name: http-incoming
- containerPort: 4141
- - name: external
- containerPort: 4142
- - name: admin
- containerPort: 9990
- volumeMounts:
- - name: "l5d-config"
- mountPath: "/io.buoyant/linkerd/config"
- readOnly: true
- resources:
- limits:
- cpu: 500m
- memory: 512Mi
- requests:
- cpu: 0
- memory: 512Mi
- # Run kubectl as a sidecar
- - name: kubectl
- image: buoyantio/kubectl:v1.4.0
- args:
- - "proxy"
- - "-p"
- - "8001"
- resources:
- requests:
- cpu: 0
- memory: 32Mi
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: l5d
- spec:
- selector:
- app: l5d
- type: ClusterIP
- ports:
- - name: external
- port: 80
- targetPort: 4142
- - name: http-outgoing
- port: 4140
- - name: http-incoming
- port: 4141
- - name: admin
- port: 9990
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement