rancher-partner-charts/charts/stackstate/stackstate-k8s-agent/1.0.98/templates/node-agent-clusterrolebindi...

20 lines
615 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ .Release.Name }}-node-agent
labels:
{{ include "stackstate-k8s-agent.labels" . | indent 4 }}
{{ include "stackstate-k8s-agent.global.extraLabels" . | indent 4 }}
app.kubernetes.io/component: node-agent
annotations:
{{ include "stackstate-k8s-agent.global.extraAnnotations" . | indent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ .Release.Name }}-node-agent
subjects:
- apiGroup: ""
kind: ServiceAccount
name: {{ .Release.Name }}-node-agent
namespace: {{ .Release.Namespace }}