-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlinkerd.yaml
75 lines (74 loc) · 1.48 KB
/
linkerd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
app: l5d
name: l5d
namespace: default
spec:
template:
metadata:
labels:
app: l5d
spec:
volumes:
- name: l5d-config
configMap:
name: "l5d-config"
containers:
- name: l5d
image: buoyantio/linkerd:1.4.6
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
args:
- /io.buoyant/linkerd/config/config.yaml
ports:
- name: http
containerPort: 4140
hostPort: 4140
volumeMounts:
- name: "l5d-config"
mountPath: "/io.buoyant/linkerd/config"
readOnly: true
- name: kubectl
image: buoyantio/kubectl:v1.8.5
args:
- "proxy"
- "-p"
- "8001"
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: cluster-admin-binding
subjects:
- kind: ServiceAccount
name: default
namespace: default
apiGroup: ""
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: ""
---
apiVersion: v1
kind: Service
metadata:
name: l5d
namespace: default
spec:
selector:
app: l5d
type: LoadBalancer
ports:
- name: http
port: 4140
targetPort: 4140
externalIPs: ["192.168.99.100"] # use output of `minikube ip` command here