012aaadacc
A new release is added to the cluster: Name: metrics-server Namespace: kube-system Version: 3.11.0 Chart: metrics-server/metrics-server
20 lines
583 B
YAML
20 lines
583 B
YAML
{{- if .Values.rbac.create -}}
|
|
{{- if .Values.addonResizer.enabled -}}
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: {{ printf "%s-nanny" (include "metrics-server.fullname" .) }}
|
|
namespace: kube-system
|
|
labels:
|
|
{{- include "metrics-server.labels" . | nindent 4 }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: {{ include "metrics-server.addonResizer.role" . }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ include "metrics-server.serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end -}}
|
|
{{- end -}}
|