Last active
January 21, 2018 10:24
-
-
Save tomoyat1/814a4e2131cc8da9ece84c586c678094 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: l5d-config | |
namespace: default | |
data: | |
config.yaml: |- | |
admin: | |
ip: 0.0.0.0 | |
port: 9990 | |
namers: | |
- kind: io.l5d.k8s | |
experimental: true | |
host: localhost | |
port: 8001 | |
telemetry: | |
- kind: io.l5d.prometheus | |
- kind: io.l5d.recentRequests | |
sampleRate: 0.25 | |
usage: | |
orgId: grpc-lb-test-daemonset | |
routers: | |
- protocol: h2 | |
label: outgoing | |
experimental: true | |
dtab: | | |
/srv => /#/io.l5d.k8s/default/grpc; | |
/grpc => /srv; | |
/grpc/World => /srv/world-v1; | |
/svc => /$/io.buoyant.http.domainToPathPfx/grpc; | |
identifier: | |
kind: io.l5d.header.path | |
segments: 1 | |
interpreter: | |
kind: default | |
transformers: | |
- kind: io.l5d.k8s.daemonset | |
namespace: default | |
port: incoming | |
service: l5d | |
hostNetwork: true | |
servers: | |
- port: 4140 | |
ip: 0.0.0.0 | |
- protocol: h2 | |
label: incoming | |
experimental: true | |
dtab: | | |
/srv => /#/io.l5d.k8s/default/grpc; | |
/grpc => /srv; | |
/grpc/World => /srv/world-v1; | |
/svc => /$/io.buoyant.http.domainToPathPfx/grpc; | |
identifier: | |
kind: io.l5d.header.path | |
segments: 1 | |
interpreter: | |
kind: default | |
transformers: | |
- kind: io.l5d.k8s.localnode | |
hostNetwork: true | |
servers: | |
- port: 4141 | |
ip: 0.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
labels: | |
app: l5d | |
name: l5d | |
spec: | |
template: | |
metadata: | |
labels: | |
app: l5d | |
spec: | |
hostNetwork: true | |
dnsPolicy: ClusterFirstWithHostNet | |
volumes: | |
- name: l5d-config | |
configMap: | |
name: "l5d-config" | |
containers: | |
- name: l5d | |
image: buoyantio/linkerd:1.3.2 | |
env: | |
- name: NODE_NAME | |
valueFrom: | |
fieldRef: | |
fieldPath: spec.nodeName | |
args: | |
- /io.buoyant/linkerd/config/config.yaml | |
ports: | |
- name: outgoing | |
containerPort: 4140 | |
hostPort: 4140 | |
- name: incoming | |
containerPort: 4141 | |
hostPort: 4141 | |
- name: admin | |
containerPort: 9990 | |
hostPort: 9990 | |
volumeMounts: | |
- name: "l5d-config" | |
mountPath: "/io.buoyant/linkerd/config" | |
readOnly: true | |
- name: kubectl | |
image: buoyantio/kubectl:v1.8.5 | |
args: | |
- "proxy" | |
- "-p" | |
- "8001" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: l5d | |
namespace: default | |
spec: | |
selector: | |
app: l5d | |
type: ClusterIP | |
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