Skip to content

Commit

Permalink
Merge pull request #1016 from titilambert/master
Browse files Browse the repository at this point in the history
Add missing SA for dns internal check
  • Loading branch information
Eric Greer committed Feb 25, 2022
2 parents 6cd93c1 + 1b7cae3 commit 38ead7d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions deploy/helm/kuberhealthy/templates/khcheck-dns-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,37 @@ spec:
tolerations:
{{- toYaml .Values.check.dnsInternal.tolerations | nindent 6 }}
{{- end }}
serviceAccountName: dns-internal-sa
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: dns-internal-check-rb
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: dns-internal-service-role
subjects:
- kind: ServiceAccount
name: dns-internal-sa
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: dns-internal-service-role
namespace: {{ .Release.Namespace }}
rules:
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: dns-internal-sa
namespace: {{ .Release.Namespace }}
{{- end }}

0 comments on commit 38ead7d

Please sign in to comment.