rolebinding.yaml 420 Bytes
Newer Older
1 2 3 4 5
{{- if .Values.rbac.create }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: influx:telegraf:viewer
6 7
  labels:
    {{- include "telegraf.labels" . | nindent 4 }}
8 9 10 11 12 13 14 15 16
subjects:
  - kind: ServiceAccount
    name: {{ include "telegraf.fullname" . }}
    namespace: {{ .Release.Namespace }}
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: influx:telegraf
{{- end }}