rancher-partner-charts/charts/instana/instana-agent/templates/k8s-sensor-rolebinding.yaml

18 lines
407 B
YAML

{{- if .Values.k8s_sensor.deployment.enabled -}}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: k8sensor
labels:
{{- include "instana-agent.commonLabels" . | nindent 4 }}
roleRef:
kind: ClusterRole
name: k8sensor
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: k8sensor
namespace: {{ .Release.Namespace }}
{{- end }}