|
38 | 38 | # * Automatic retries
|
39 | 39 | # * Zipkin tracing
|
40 | 40 | ################################################################################
|
| 41 | +--- |
| 42 | +kind: Namespace |
| 43 | +apiVersion: v1 |
| 44 | +metadata: |
| 45 | + name: linkerd |
| 46 | + labels: |
| 47 | + name: linkerd |
| 48 | +# RBAC configs for linkerd |
| 49 | +--- |
| 50 | +# grant linkerd/namerd permissions to enable service discovery |
| 51 | +kind: ClusterRole |
| 52 | +apiVersion: rbac.authorization.k8s.io/v1beta1 |
| 53 | +metadata: |
| 54 | + name: linkerd-endpoints-reader |
| 55 | +rules: |
| 56 | + - apiGroups: [""] # "" indicates the core API group |
| 57 | + resources: ["endpoints", "services", "pods"] # pod access is required for the *-legacy.yml examples in this folder |
| 58 | + verbs: ["get", "watch", "list"] |
| 59 | + - apiGroups: [ "extensions" ] |
| 60 | + resources: [ "ingresses" ] |
| 61 | + verbs: ["get", "watch", "list"] |
| 62 | +--- |
| 63 | +# grant namerd permissions to custom resource definitions in k8s 1.8+ and third party resources in k8s < 1.8 for dtab storage |
| 64 | +kind: ClusterRole |
| 65 | +apiVersion: rbac.authorization.k8s.io/v1beta1 |
| 66 | +metadata: |
| 67 | + name: namerd-dtab-storage |
| 68 | +rules: |
| 69 | + - apiGroups: ["l5d.io"] |
| 70 | + resources: ["dtabs"] |
| 71 | + verbs: ["get", "watch", "list", "update", "create"] |
| 72 | +--- |
| 73 | +kind: ClusterRoleBinding |
| 74 | +apiVersion: rbac.authorization.k8s.io/v1beta1 |
| 75 | +metadata: |
| 76 | + name: linkerd-role-binding |
| 77 | +subjects: |
| 78 | + - kind: ServiceAccount |
| 79 | + name: default |
| 80 | + namespace: linkerd |
| 81 | +roleRef: |
| 82 | + kind: ClusterRole |
| 83 | + name: linkerd-endpoints-reader |
| 84 | + apiGroup: rbac.authorization.k8s.io |
| 85 | +--- |
| 86 | +kind: ClusterRoleBinding |
| 87 | +apiVersion: rbac.authorization.k8s.io/v1beta1 |
| 88 | +metadata: |
| 89 | + name: namerd-role-binding |
| 90 | +subjects: |
| 91 | + - kind: ServiceAccount |
| 92 | + name: default |
| 93 | + namespace: linkerd |
| 94 | +roleRef: |
| 95 | + kind: ClusterRole |
| 96 | + name: namerd-dtab-storage |
| 97 | + apiGroup: rbac.authorization.k8s.io |
| 98 | + |
41 | 99 | ---
|
42 | 100 | apiVersion: v1
|
43 | 101 | kind: ConfigMap
|
@@ -285,7 +343,7 @@ spec:
|
285 | 343 | app: l5d
|
286 | 344 | spec:
|
287 | 345 | # hostNetwork: true # Uncomment to use host networking (eg for CNI)
|
288 |
| - serviceAccountName: linkerd-endpoints-reader |
| 346 | + serviceAccountName: default |
289 | 347 | volumes:
|
290 | 348 | - name: l5d-config
|
291 | 349 | configMap:
|
|
0 commit comments