Skip to content

Commit

Permalink
Add missing RBAC for external-dns
Browse files Browse the repository at this point in the history
Signed-off-by: Yury Tsarev <yury.tsarev@absa.africa>
  • Loading branch information
ytsarev authored and k0da committed Mar 1, 2021
1 parent 5315096 commit 549808c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 9 deletions.
35 changes: 35 additions & 0 deletions chart/k8gb/templates/external-dns/rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: external-dns
rules:
- apiGroups: ["externaldns.k8s.io"]
resources: ["dnsendpoints"]
verbs: ["get","watch","list"]
- apiGroups: ["externaldns.k8s.io"]
resources: ["dnsendpoints/status"]
verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: external-dns-viewer
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: external-dns
subjects:
- kind: ServiceAccount
name: external-dns
namespace: {{ .Release.Namespace }}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: external-dns
namespace: {{ .Release.Namespace }}
{{ if .Values.route53.enabled }}
annotations:
eks.amazonaws.com/role-arn: {{ .Values.route53.irsaRole }}
{{ end }}
9 changes: 0 additions & 9 deletions chart/k8gb/templates/external-dns/service-account.yaml

This file was deleted.

0 comments on commit 549808c

Please sign in to comment.