kubernetes-handbook/manifests/linkerd/linkerd-ingress-controller.yml

78 lines
1.5 KiB
YAML
Raw Normal View History

2017-08-01 21:20:16 +08:00
---
apiVersion: v1
kind: ConfigMap
metadata:
name: l5d-config
data:
config.yaml: |-
namers:
- kind: io.l5d.k8s
routers:
- protocol: http
identifier:
kind: io.l5d.ingress
servers:
- port: 80
ip: 0.0.0.0
clearContext: true
dtab: /svc => /#/io.l5d.k8s
usage:
orgId: linkerd-examples-ingress
---
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: http
containerPort: 80
hostPort: 80
- 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
type: LoadBalancer
ports:
- name: http
port: 80
- name: admin
port: 9990