mirror of
https://github.com/FlipsideCrypto/coredns-helm.git
synced 2026-02-06 10:56:50 +00:00
This is the common approach, stable doesnt make sense. Also since coredns is the only chart in this repo, link the README instead. Signed-off-by: Manuel Rüger <manuel@rueg.eu>
29 lines
998 B
YAML
29 lines
998 B
YAML
{{- if and .Values.autoscaler.enabled .Values.rbac.create }}
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: {{ template "coredns.fullname" . }}-autoscaler
|
|
labels:
|
|
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
|
|
app.kubernetes.io/instance: {{ .Release.Name | quote }}
|
|
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
|
|
{{- if .Values.isClusterService }}
|
|
k8s-app: {{ .Chart.Name }}-autoscaler
|
|
kubernetes.io/cluster-service: "true"
|
|
kubernetes.io/name: "CoreDNS"
|
|
{{- end }}
|
|
app.kubernetes.io/name: {{ template "coredns.name" . }}-autoscaler
|
|
{{- if .Values.customLabels }}
|
|
{{ toYaml .Values.customLabels | indent 4 }}
|
|
{{- end }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: {{ template "coredns.fullname" . }}-autoscaler
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ template "coredns.fullname" . }}-autoscaler
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end }}
|