mirror of https://github.com/linkerd/linkerd2.git
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
{{with .Values -}}
|
|
---
|
|
###
|
|
### Tap RBAC
|
|
###
|
|
---
|
|
kind: ClusterRole
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
metadata:
|
|
name: linkerd-{{.Namespace}}-tap
|
|
labels:
|
|
{{.ControllerComponentLabel}}: tap
|
|
{{.ControllerNamespaceLabel}}: {{.Namespace}}
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["pods", "services", "replicationcontrollers", "namespaces"]
|
|
verbs: ["list", "get", "watch"]
|
|
- apiGroups: ["extensions", "apps"]
|
|
resources: ["daemonsets", "deployments", "replicasets", "statefulsets"]
|
|
verbs: ["list", "get", "watch"]
|
|
- apiGroups: ["extensions", "batch"]
|
|
resources: ["jobs"]
|
|
verbs: ["list" , "get", "watch"]
|
|
---
|
|
kind: ClusterRoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
metadata:
|
|
name: linkerd-{{.Namespace}}-tap
|
|
labels:
|
|
{{.ControllerComponentLabel}}: tap
|
|
{{.ControllerNamespaceLabel}}: {{.Namespace}}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: linkerd-{{.Namespace}}-tap
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: linkerd-tap
|
|
namespace: {{.Namespace}}
|
|
---
|
|
kind: ServiceAccount
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-tap
|
|
namespace: {{.Namespace}}
|
|
labels:
|
|
{{.ControllerComponentLabel}}: tap
|
|
{{.ControllerNamespaceLabel}}: {{.Namespace}}
|
|
{{end -}}
|